blob: 91dc41db700c74cd2c207515c83a8bb1449a9517 [file]
//! regression test for <https://github.com/rust-lang/rust/issues/18119>
const X: u8 = 1;
static Y: u8 = 1;
fn foo() {}
impl X {}
//~^ ERROR cannot find type `X` in this scope
impl Y {}
//~^ ERROR cannot find type `Y` in this scope
impl foo {}
//~^ ERROR cannot find type `foo` in this scope
fn main() {}