2019-09-03 09:21:58 +08:00
|
|
|
error[E0308]: mismatched `self` parameter type
|
2018-12-25 23:56:47 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:8:18
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
|
|
|
LL | fn say(self: &Pair<&str, isize>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
2023-12-08 11:54:41 +08:00
|
|
|
= note: expected struct `Pair<&_, _>`
|
|
|
|
found struct `Pair<&_, _>`
|
2021-10-05 20:11:51 +08:00
|
|
|
note: the anonymous lifetime defined here...
|
2021-02-22 22:39:06 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:8:24
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
2020-08-13 05:02:14 +08:00
|
|
|
LL | fn say(self: &Pair<&str, isize>) {
|
2021-02-22 22:39:06 +08:00
|
|
|
| ^^^^
|
2022-05-13 03:25:38 +08:00
|
|
|
note: ...does not necessarily outlive the anonymous lifetime as defined here
|
2018-12-25 23:56:47 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:5:5
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
|
|
|
LL | &str,
|
|
|
|
| ^
|
|
|
|
|
2019-09-03 09:21:58 +08:00
|
|
|
error[E0308]: mismatched `self` parameter type
|
2018-12-25 23:56:47 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:8:18
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
|
|
|
LL | fn say(self: &Pair<&str, isize>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
2023-12-08 11:54:41 +08:00
|
|
|
= note: expected struct `Pair<&_, _>`
|
|
|
|
found struct `Pair<&_, _>`
|
2022-05-13 03:25:38 +08:00
|
|
|
note: the anonymous lifetime as defined here...
|
2018-12-25 23:56:47 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:5:5
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
|
|
|
LL | &str,
|
|
|
|
| ^
|
2021-10-05 20:11:51 +08:00
|
|
|
note: ...does not necessarily outlive the anonymous lifetime defined here
|
2021-02-22 22:39:06 +08:00
|
|
|
--> $DIR/issue-17905-2.rs:8:24
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
2020-08-13 05:02:14 +08:00
|
|
|
LL | fn say(self: &Pair<&str, isize>) {
|
2021-02-22 22:39:06 +08:00
|
|
|
| ^^^^
|
2018-10-08 16:13:37 +08:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|