]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-const-no-body-semantic-fail.rs
Rollup merge of #87404 - rylev:artifact-size-profiling, r=wesleywiser
[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