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