mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
11 lines
350 B
Plaintext
11 lines
350 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/normalization-nested.rs:40:5
|
|
|
|
|
LL | pub fn test_borrowck<'x>(_: Map<Vec<&'x ()>>, s: &'x str) -> &'static str {
|
|
| -- lifetime `'x` defined here
|
|
LL | s
|
|
| ^ returning this value requires that `'x` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|