rust/src/test/ui/self/self-vs-path-ambiguity.stderr

9 lines
249 B
Plaintext

error: unexpected lifetime `'a` in pattern
--> $DIR/self-vs-path-ambiguity.rs:19:11
|
LL | fn i(&'a self::S: &S) {} //~ ERROR unexpected lifetime `'a` in pattern
| ^^ unexpected lifetime
error: aborting due to previous error