]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18119.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / 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() {}