summaryrefslogtreecommitdiffstats
path: root/src/test/ui/self/self-vs-path-ambiguity.stderr
blob: 2beef50cdb5c64cdaf599dcad73165d0de6de747 (plain)
1
2
3
4
5
6
7
8
error: unexpected lifetime `'a` in pattern
  --> $DIR/self-vs-path-ambiguity.rs:9:11
   |
LL |     fn i(&'a self::S: &S) {}
   |           ^^ help: remove the lifetime

error: aborting due to previous error