error: unsatisfied lifetime constraints | |
--> $DIR/constant-in-expr-trait-item-2.rs:12:5 | |
| | |
LL | fn foo<'a, T: Foo<'a>>() -> &'static u32 { | |
| -- lifetime `'a` defined here | |
LL | <T as Foo<'a>>::C //~ ERROR | |
| ^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` | |
error: aborting due to previous error | |