1 error[E0308]: mismatched types
2 --> $DIR/variance-associated-types2.rs:13:42
4 LL | let _: Box<dyn Foo<Bar = &'a u32>> = make();
5 | ^^^^^^ lifetime mismatch
7 = note: expected trait object `dyn Foo<Bar = &'a u32>`
8 found trait object `dyn Foo<Bar = &'static u32>`
9 note: the lifetime `'a` as defined on the function body at 12:9...
10 --> $DIR/variance-associated-types2.rs:12:9
12 LL | fn take<'a>(_: &'a u32) {
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.