]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-17905-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-17905-2.stderr
1 error[E0308]: mismatched `self` parameter type
2 --> $DIR/issue-17905-2.rs:8:18
3 |
4 LL | fn say(self: &Pair<&str, isize>) {
5 | ^^^^^^^^^^^^^^^^^^ lifetime mismatch
6 |
7 = note: expected struct `Pair<&str, _>`
8 found struct `Pair<&str, _>`
9 note: the anonymous lifetime defined here...
10 --> $DIR/issue-17905-2.rs:8:24
11 |
12 LL | fn say(self: &Pair<&str, isize>) {
13 | ^^^^
14 note: ...does not necessarily outlive the anonymous lifetime as defined here
15 --> $DIR/issue-17905-2.rs:5:5
16 |
17 LL | &str,
18 | ^
19
20 error[E0308]: mismatched `self` parameter type
21 --> $DIR/issue-17905-2.rs:8:18
22 |
23 LL | fn say(self: &Pair<&str, isize>) {
24 | ^^^^^^^^^^^^^^^^^^ lifetime mismatch
25 |
26 = note: expected struct `Pair<&str, _>`
27 found struct `Pair<&str, _>`
28 note: the anonymous lifetime as defined here...
29 --> $DIR/issue-17905-2.rs:5:5
30 |
31 LL | &str,
32 | ^
33 note: ...does not necessarily outlive the anonymous lifetime defined here
34 --> $DIR/issue-17905-2.rs:8:24
35 |
36 LL | fn say(self: &Pair<&str, isize>) {
37 | ^^^^
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0308`.