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