fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0312]: lifetime of reference outlives lifetime of borrowed content... 2 --> $DIR/constant-in-expr-trait-item-1.rs:10:5 3 | 4LL | <() as Foo<'a>>::C 5 | ^^^^^^^^^^^^^^^^^^ 6 | 7 = note: ...the reference is valid for the static lifetime... 8note: ...but the borrowed content is only valid for the lifetime `'a` as defined on the function body at 9:8 9 --> $DIR/constant-in-expr-trait-item-1.rs:9:8 10 | 11LL | fn foo<'a>(_: &'a u32) -> &'static u32 { 12 | ^^ 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0312`.