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