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 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]`
18 note: required because it appears within the type `A<[u8]>`
19 --> $DIR/unsized-exprs.rs:3:8
21 LL | struct A<X: ?Sized>(X);
23 = note: structs must have a statically known size to be initialized
25 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
26 --> $DIR/unsized-exprs.rs:26:22
28 LL | udrop::<A<[u8]>>(A(*foo()));
29 | ^ doesn't have a size known at compile-time
31 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]`
32 note: required because it appears within the type `A<[u8]>`
33 --> $DIR/unsized-exprs.rs:3:8
35 LL | struct A<X: ?Sized>(X);
37 = note: the return type of a function must have a statically known size
39 error: aborting due to 3 previous errors
41 For more information about this error, try `rustc --explain E0277`.