summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17905-2.stderr
blob: 88b5fbec6cf03a860e548461e3c0309ae753db21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
error[E0308]: mismatched `self` parameter type
  --> $DIR/issue-17905-2.rs:8:18
   |
LL |     fn say(self: &Pair<&str, isize>) {
   |                  ^^^^^^^^^^^^^^^^^^ lifetime mismatch
   |
   = note: expected struct `Pair<&str, _>`
              found struct `Pair<&str, _>`
note: the anonymous lifetime defined here...
  --> $DIR/issue-17905-2.rs:8:24
   |
LL |     fn say(self: &Pair<&str, isize>) {
   |                        ^^^^
note: ...does not necessarily outlive the anonymous lifetime as defined here
  --> $DIR/issue-17905-2.rs:5:5
   |
LL |     &str,
   |     ^

error[E0308]: mismatched `self` parameter type
  --> $DIR/issue-17905-2.rs:8:18
   |
LL |     fn say(self: &Pair<&str, isize>) {
   |                  ^^^^^^^^^^^^^^^^^^ lifetime mismatch
   |
   = note: expected struct `Pair<&str, _>`
              found struct `Pair<&str, _>`
note: the anonymous lifetime as defined here...
  --> $DIR/issue-17905-2.rs:5:5
   |
LL |     &str,
   |     ^
note: ...does not necessarily outlive the anonymous lifetime defined here
  --> $DIR/issue-17905-2.rs:8:24
   |
LL |     fn say(self: &Pair<&str, isize>) {
   |                        ^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.