blob: cfb87f5186d32dd2f33101c91b3620b0c17cb250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use self::Self as Foo; //~ ERROR unresolved import `self::Self`
pub fn main() {
let Self = 5;
//~^ ERROR cannot find unit struct, unit variant or constant `Self` in this scope
match 15 {
Self => (),
//~^ ERROR cannot find unit struct, unit variant or constant `Self` in this scope
Foo { x: Self } => (),
//~^ ERROR cannot find unit struct, unit variant or constant `Self` in this scope
}
}
|