blob: dde5762fd780499ad8e1a32f6ff5345c78bf0157 [file] [log] [blame]
use self::Self as Foo; //~ ERROR unresolved import `self::Self`
pub fn main() {
let Self = 5;
//~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
match 15 {
Self => (),
//~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
Foo { x: Self } => (),
//~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
}
}