fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0308]: mismatched types 2 --> $DIR/object-lifetime-default-from-rptr-box-error.rs:15:12 3 | 4LL | ss.t = t; 5 | ^ lifetime mismatch 6 | 7 = note: expected reference `&'a std::boxed::Box<(dyn Test + 'static)>` 8 found reference `&'a std::boxed::Box<(dyn Test + 'a)>` 9note: the lifetime `'a` as defined on the function body at 14:6... 10 --> $DIR/object-lifetime-default-from-rptr-box-error.rs:14:6 11 | 12LL | fn c<'a>(t: &'a Box<dyn Test+'a>, mut ss: SomeStruct<'a>) { 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`.