2023-01-31 10:45:30 -06:00
|
|
|
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`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-31 10:45:30 -06:00
|
|
|
|