1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> $DIR/unsized-exprs.rs:22:26
4 LL | udrop::<(i32, [u8])>((42, *foo()));
5 | ^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: within `({integer}, [u8])`, the trait `Sized` is not implemented for `[u8]`
8 = note: required because it appears within the type `({integer}, [u8])`
9 = note: tuples must have a statically known size to be initialized
11 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
12 --> $DIR/unsized-exprs.rs:24:22
14 LL | udrop::<A<[u8]>>(A { 0: *foo() });
15 | ---------------- ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
17 | required by a bound introduced by this call
19 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]`
20 note: required because it appears within the type `A<[u8]>`
21 --> $DIR/unsized-exprs.rs:3:8
23 LL | struct A<X: ?Sized>(X);
25 = note: structs must have a statically known size to be initialized
27 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
28 --> $DIR/unsized-exprs.rs:26:22
30 LL | udrop::<A<[u8]>>(A(*foo()));
31 | ^ doesn't have a size known at compile-time
33 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]`
34 note: required because it appears within the type `A<[u8]>`
35 --> $DIR/unsized-exprs.rs:3:8
37 LL | struct A<X: ?Sized>(X);
39 = note: the return type of a function must have a statically known size
41 error: aborting due to 3 previous errors
43 For more information about this error, try `rustc --explain E0277`.