]> git.lizzy.rs Git - rust.git/blob - src/test/ui/explicit/explicit-self-lifetime-mismatch.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / explicit / explicit-self-lifetime-mismatch.stderr
1 error[E0308]: mismatched method receiver
2   --> $DIR/explicit-self-lifetime-mismatch.rs:8:12
3    |
4 LL |            Foo<'b,'a>
5    |            ^^^^^^^^^^ lifetime mismatch
6    |
7    = note: expected type `Foo<'a, 'b>`
8               found type `Foo<'b, 'a>`
9 note: the lifetime 'b as defined on the impl at 6:9...
10   --> $DIR/explicit-self-lifetime-mismatch.rs:6:9
11    |
12 LL | impl<'a,'b> Foo<'a,'b> {
13    |         ^^
14 note: ...does not necessarily outlive the lifetime 'a as defined on the impl at 6:6
15   --> $DIR/explicit-self-lifetime-mismatch.rs:6:6
16    |
17 LL | impl<'a,'b> Foo<'a,'b> {
18    |      ^^
19
20 error[E0308]: mismatched method receiver
21   --> $DIR/explicit-self-lifetime-mismatch.rs:8:12
22    |
23 LL |            Foo<'b,'a>
24    |            ^^^^^^^^^^ lifetime mismatch
25    |
26    = note: expected type `Foo<'a, 'b>`
27               found type `Foo<'b, 'a>`
28 note: the lifetime 'a as defined on the impl at 6:6...
29   --> $DIR/explicit-self-lifetime-mismatch.rs:6:6
30    |
31 LL | impl<'a,'b> Foo<'a,'b> {
32    |      ^^
33 note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 6:9
34   --> $DIR/explicit-self-lifetime-mismatch.rs:6:9
35    |
36 LL | impl<'a,'b> Foo<'a,'b> {
37    |         ^^
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0308`.