2020-02-14 13:21:02 +00:00
|
|
|
// 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
|
2021-10-06 00:52:45 +00:00
|
|
|
//~^ ERROR missing type for `const` item
|