]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self-vs-path-ambiguity.rs
Update ui tests
[rust.git] / src / test / ui / self / self-vs-path-ambiguity.rs
1 // Check that `self::foo` is parsed as a general pattern and not a self argument.
2
3 struct S;
4
5 impl S {
6     fn f(self::S: S) {}
7     fn g(&self::S: &S) {}
8     fn h(&mut self::S: &mut S) {}
9     fn i(&'a self::S: &S) {} //~ ERROR unexpected lifetime `'a` in pattern
10 }
11
12 fn main() {}