1 error[E0308]: mismatched types
2 --> $DIR/lifetime-bound-will-change-warning.rs:34:13
7 = note: expected reference `&Box<(dyn Fn() + 'static)>`
8 found reference `&Box<(dyn Fn() + 'a)>`
9 note: the lifetime `'a` as defined on the function body at 32:10...
10 --> $DIR/lifetime-bound-will-change-warning.rs:32:10
12 LL | fn test2<'a>(x: &'a Box<dyn Fn() + 'a>) {
14 = note: ...does not necessarily outlive the static lifetime
16 error[E0308]: mismatched types
17 --> $DIR/lifetime-bound-will-change-warning.rs:39:18
22 = note: expected reference `&Box<(dyn Fn() + 'static)>`
23 found reference `&Box<(dyn Fn() + 'a)>`
24 note: the lifetime `'a` as defined on the function body at 37:12...
25 --> $DIR/lifetime-bound-will-change-warning.rs:37:12
27 LL | fn test2cc<'a>(x: &'a Box<dyn Fn() + 'a>) {
29 = note: ...does not necessarily outlive the static lifetime
31 error: aborting due to 2 previous errors
33 For more information about this error, try `rustc --explain E0308`.