Skip to content

Commit

Permalink
bless ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Dec 24, 2021
1 parent 77297e5 commit bb4c551
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/ui/unsized/issue-30355.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub static Y: &'static X = {
const Y: &'static [u8] = b"";
&X(*Y)
//~^ ERROR E0277
//~| ERROR E0277
};

fn main() {}
16 changes: 15 additions & 1 deletion src/test/ui/unsized/issue-30355.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ LL | &X(*Y)
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature

error: aborting due to previous error
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> $DIR/issue-30355.rs:5:6
|
LL | &X(*Y)
| ^ doesn't have a size known at compile-time
|
= help: within `X`, the trait `Sized` is not implemented for `[u8]`
note: required because it appears within the type `X`
--> $DIR/issue-30355.rs:1:12
|
LL | pub struct X([u8]);
| ^
= note: the return type of a function must have a statically known size

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.

0 comments on commit bb4c551

Please sign in to comment.