mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
409 B
Plaintext
11 lines
409 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/field-projection-mutating-context2.rs:8:25
|
|
|
|
|
LL | fn foo<'a>(mut x: Foo<fn(&'a str)>, string: &'a str) {
|
|
| -- lifetime `'a` defined here
|
|
LL | let Foo(ref mut y): Foo<fn(&'static str)> = x;
|
|
| ^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|