fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> $DIR/unsized-exprs.rs:22:26 3 | 4LL | udrop::<(i32, [u8])>((42, *foo())); 5 | ^^^^^^^^^^^^ doesn't have a size known at compile-time 6 | 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 10 11error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 12 --> $DIR/unsized-exprs.rs:24:22 13 | 14LL | udrop::<A<[u8]>>(A { 0: *foo() }); 15 | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 16 | 17 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]` 18note: required because it appears within the type `A<[u8]>` 19 --> $DIR/unsized-exprs.rs:3:8 20 | 21LL | struct A<X: ?Sized>(X); 22 | ^ 23 = note: structs must have a statically known size to be initialized 24 25error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 26 --> $DIR/unsized-exprs.rs:26:22 27 | 28LL | udrop::<A<[u8]>>(A(*foo())); 29 | ^ doesn't have a size known at compile-time 30 | 31 = help: within `A<[u8]>`, the trait `Sized` is not implemented for `[u8]` 32note: required because it appears within the type `A<[u8]>` 33 --> $DIR/unsized-exprs.rs:3:8 34 | 35LL | struct A<X: ?Sized>(X); 36 | ^ 37 = note: the return type of a function must have a statically known size 38 39error: aborting due to 3 previous errors 40 41For more information about this error, try `rustc --explain E0277`.