1- warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2- --> $DIR/unsized-exprs.rs:1:36
3- |
4- LL | #![feature(unsized_tuple_coercion, unsized_locals, unsized_fn_params)]
5- | ^^^^^^^^^^^^^^
6- |
7- = note: `#[warn(incomplete_features)]` on by default
8- = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
9-
101error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
11- --> $DIR/unsized-exprs.rs:23 :26
2+ --> $DIR/unsized-exprs.rs:22 :26
123 |
134LL | udrop::<(i32, [u8])>((42, *foo()));
145 | ^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -19,7 +10,7 @@ LL | udrop::<(i32, [u8])>((42, *foo()));
1910 = note: tuples must have a statically known size to be initialized
2011
2112error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
22- --> $DIR/unsized-exprs.rs:25 :22
13+ --> $DIR/unsized-exprs.rs:24 :22
2314 |
2415LL | udrop::<A<[u8]>>(A { 0: *foo() });
2516 | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -30,7 +21,7 @@ LL | udrop::<A<[u8]>>(A { 0: *foo() });
3021 = note: structs must have a statically known size to be initialized
3122
3223error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33- --> $DIR/unsized-exprs.rs:27 :22
24+ --> $DIR/unsized-exprs.rs:26 :22
3425 |
3526LL | udrop::<A<[u8]>>(A(*foo()));
3627 | ^ doesn't have a size known at compile-time
@@ -40,6 +31,6 @@ LL | udrop::<A<[u8]>>(A(*foo()));
4031 = note: required because it appears within the type `A<[u8]>`
4132 = note: the return type of a function must have a statically known size
4233
43- error: aborting due to 3 previous errors; 1 warning emitted
34+ error: aborting due to 3 previous errors
4435
4536For more information about this error, try `rustc --explain E0277`.
0 commit comments