fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-65230.rs:8:13 3 | 4LL | impl T1 for &dyn T2 {} 5 | ^^^^^^^ lifetime mismatch 6 | 7 = note: expected trait `<&dyn T2 as T0>` 8 found trait `<&(dyn T2 + 'static) as T0>` 9note: the anonymous lifetime as defined here... 10 --> $DIR/issue-65230.rs:8:13 11 | 12LL | impl T1 for &dyn T2 {} 13 | ^ 14 = note: ...does not necessarily outlive the static lifetime 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0308`.