Check explicitly that tuple initializer is Sized.
This commit is contained in:
parent
7acce3724d
commit
17fca8b460
5 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ fn f9<X: ?Sized>(x1: Box<S<X>>) {
|
|||
fn f10<X: ?Sized>(x1: Box<S<X>>) {
|
||||
f5(&(32, *x1));
|
||||
//~^ ERROR `X: std::marker::Sized` is not satisfied
|
||||
//~| ERROR `X: std::marker::Sized` is not satisfied
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue