rust/tests/ui/consts/dont-ctfe-unsized-initializer.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
226 B
Rust
Raw Normal View History

static S: str = todo!();
//~^ ERROR the size for values of type `str` cannot be known at compilation time
const C: str = todo!();
//~^ ERROR the size for values of type `str` cannot be known at compilation time
fn main() {}