]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-const-no-body-semantic-fail.rs
Rollup merge of #89509 - jhpratt:stabilize-const_unreachable_unchecked, r=oli-obk
[rust.git] / src / test / ui / parser / item-free-const-no-body-semantic-fail.rs
1 // Semantically, a free `const` item cannot omit its body.
2
3 fn main() {}
4
5 const A: u8; //~ ERROR free constant item without body
6 const B; //~ ERROR free constant item without body
7 //~^ ERROR missing type for `const` item