]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr
Auto merge of #55040 - scalexm:param-env, r=nikomatsakis
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-from-rptr-struct-error.stderr
1 error[E0308]: mismatched types
2   --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:31:12
3    |
4 LL |     ss.t = t; //~ ERROR mismatched types
5    |            ^ lifetime mismatch
6    |
7    = note: expected type `&'a MyBox<(dyn Test + 'static)>`
8               found type `&'a MyBox<(dyn Test + 'a)>`
9 note: the lifetime 'a as defined on the function body at 30:6...
10   --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:30:6
11    |
12 LL | fn c<'a>(t: &'a MyBox<Test+'a>, mut ss: SomeStruct<'a>) {
13    |      ^^
14    = note: ...does not necessarily outlive the static lifetime
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.