mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +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
|
|
|