2021-10-09 15:23:35 +00:00
|
|
|
error[E0308]: mismatched types
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/issue-65230.rs:8:13
|
2021-10-07 16:00:15 +00:00
|
|
|
|
|
2021-10-09 15:23:35 +00:00
|
|
|
LL | impl T1 for &dyn T2 {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| ^^^^^^^ lifetime mismatch
|
2021-10-09 15:23:35 +00:00
|
|
|
|
|
|
|
|
= note: expected trait `<&dyn T2 as T0>`
|
|
|
|
found trait `<&(dyn T2 + 'static) as T0>`
|
2022-05-12 19:25:38 +00:00
|
|
|
note: the anonymous lifetime as defined here...
|
2021-10-09 15:23:35 +00:00
|
|
|
--> $DIR/issue-65230.rs:8:13
|
2021-10-07 16:00:15 +00:00
|
|
|
|
|
2021-10-09 15:23:35 +00:00
|
|
|
LL | impl T1 for &dyn T2 {}
|
|
|
|
| ^
|
|
|
|
= note: ...does not necessarily outlive the static lifetime
|
2021-10-07 16:00:15 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2021-10-09 15:23:35 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|