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