summary refs log tree commit diff
path: root/tests/ui/mir/static-by-value-slice.stderr
blob: 2d0592943d0b75bddaee65523b92b24c1635cc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the size for values of type `[i8]` cannot be known at compilation time
  --> $DIR/static-by-value-slice.rs:5:1
   |
LL | static mut S: [i8] = ["Some thing"; 1];
   | ^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `[i8]`
   = note: statics and constants must have a statically known size

error: aborting due to 1 previous error

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