]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-const-no-body-semantic-fail.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[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