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