]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-18119.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / issues / issue-18119.rs
1 const X: u8 = 1;
2 static Y: u8 = 1;
3 fn foo() {}
4
5 impl X {}
6 //~^ ERROR expected type, found constant `X`
7 impl Y {}
8 //~^ ERROR expected type, found static `Y`
9 impl foo {}
10 //~^ ERROR expected type, found function `foo`
11
12 fn main() {}