1 error[E0308]: mismatched `self` parameter type
2 --> $DIR/issue-17740.rs:6:18
4 LL | fn bar(self: &mut Foo) {
5 | ^^^^^^^^ lifetime mismatch
7 = note: expected struct `Foo<'a>`
9 note: the anonymous lifetime defined here...
10 --> $DIR/issue-17740.rs:6:23
12 LL | fn bar(self: &mut Foo) {
14 note: ...does not necessarily outlive the lifetime `'a` as defined here
15 --> $DIR/issue-17740.rs:5:7
17 LL | impl <'a> Foo<'a>{
20 error[E0308]: mismatched `self` parameter type
21 --> $DIR/issue-17740.rs:6:18
23 LL | fn bar(self: &mut Foo) {
24 | ^^^^^^^^ lifetime mismatch
26 = note: expected struct `Foo<'a>`
27 found struct `Foo<'_>`
28 note: the lifetime `'a` as defined here...
29 --> $DIR/issue-17740.rs:5:7
31 LL | impl <'a> Foo<'a>{
33 note: ...does not necessarily outlive the anonymous lifetime defined here
34 --> $DIR/issue-17740.rs:6:23
36 LL | fn bar(self: &mut Foo) {
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.