about summary refs log tree commit diff
path: root/tests/ui/variance/variance-associated-types2.stderr
blob: 292d60941b185e3ac8f625a34efd111f641fe351 (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/variance-associated-types2.rs:13:42
   |
LL | fn take<'a>(_: &'a u32) {
   |         -- lifetime `'a` defined here
LL |     let _: Box<dyn Foo<Bar = &'a u32>> = make();
   |                                          ^^^^^^ coercion requires that `'a` must outlive `'static`

error: aborting due to 1 previous error