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