mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
8 lines
221 B
Rust
8 lines
221 B
Rust
// Semantically, a free `const` item cannot omit its body.
|
|
|
|
fn main() {}
|
|
|
|
const A: u8; //~ ERROR free constant item without body
|
|
const B; //~ ERROR free constant item without body
|
|
//~^ ERROR missing type for `const` item
|