]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self_type_keyword-2.rs
Update ui tests
[rust.git] / src / test / ui / self / self_type_keyword-2.rs
1 use self::Self as Foo; //~ ERROR unresolved import `self::Self`
2
3 pub fn main() {
4     let Self = 5;
5     //~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
6
7     match 15 {
8         Self => (),
9         //~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
10         Foo { x: Self } => (),
11         //~^ ERROR cannot find unit struct/variant or constant `Self` in this scope
12     }
13 }