about summary refs log tree commit diff
path: root/tests/ui/consts/dont-ctfe-unsized-initializer.stderr
blob: 5b0a0166f3112040cd67d2ce47bae10e5332d098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/dont-ctfe-unsized-initializer.rs:1:1
   |
LL | static S: str = todo!();
   | ^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: statics and constants must have a statically known size

error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/dont-ctfe-unsized-initializer.rs:4:10
   |
LL | const C: str = todo!();
   |          ^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: statics and constants must have a statically known size

error: aborting due to 2 previous errors

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