rust/tests/ui/issues/issue-18119.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
229 B
Rust
Raw Normal View History

const X: u8 = 1;
static Y: u8 = 1;
fn foo() {}
impl X {}
//~^ ERROR expected type, found constant `X`
impl Y {}
//~^ ERROR expected type, found static `Y`
impl foo {}
//~^ ERROR expected type, found function `foo`
fn main() {}