mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
354 B
Plaintext
12 lines
354 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/issue-57280-1-flipped.rs:17:9
|
|
|
|
|
LL | fn foo<'a>(x: &'static u32) {
|
|
| -- lifetime `'a` defined here
|
|
LL | match x {
|
|
LL | <() as Foo<'a>>::C => { }
|
|
| ^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|