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