blob: 047aad98319232d12dc9a8e6fe3bf31c5fd39791 [file] [log] [blame]
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