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
-
10
1
error[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
12
3
|
13
4
LL | udrop::<(i32, [u8])>((42, *foo()));
14
5
| ^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -19,7 +10,7 @@ LL | udrop::<(i32, [u8])>((42, *foo()));
19
10
= note: tuples must have a statically known size to be initialized
20
11
21
12
error[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
23
14
|
24
15
LL | udrop::<A<[u8]>>(A { 0: *foo() });
25
16
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -30,7 +21,7 @@ LL | udrop::<A<[u8]>>(A { 0: *foo() });
30
21
= note: structs must have a statically known size to be initialized
31
22
32
23
error[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
34
25
|
35
26
LL | udrop::<A<[u8]>>(A(*foo()));
36
27
| ^ doesn't have a size known at compile-time
@@ -40,6 +31,6 @@ LL | udrop::<A<[u8]>>(A(*foo()));
40
31
= note: required because it appears within the type `A<[u8]>`
41
32
= note: the return type of a function must have a statically known size
42
33
43
- error: aborting due to 3 previous errors; 1 warning emitted
34
+ error: aborting due to 3 previous errors
44
35
45
36
For more information about this error, try `rustc --explain E0277`.
0 commit comments