2023-03-30 22:27:51 -05:00
|
|
|
error[E0759]: `fn` parameter has lifetime `'x` but it needs to satisfy a `'static` lifetime requirement
|
2023-12-01 14:13:01 -06:00
|
|
|
--> $DIR/normalization-nested.rs:35:28
|
2023-03-30 22:27:51 -05:00
|
|
|
|
|
2023-12-01 14:13:01 -06:00
|
|
|
LL | pub fn test_wfcheck<'x>(_: Map<Vec<&'x ()>>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| this data with lifetime `'x`...
|
|
|
|
| ...is used and required to live as long as `'static` here
|
2023-03-30 22:27:51 -05:00
|
|
|
|
|
|
|
|
note: `'static` lifetime requirement introduced by this bound
|
|
|
|
--> $DIR/normalization-nested.rs:33:14
|
|
|
|
|
|
|
|
|
LL | I::Item: 'static;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2023-12-01 14:13:01 -06:00
|
|
|
error[E0759]: `fn` parameter has lifetime `'x` but it needs to satisfy a `'static` lifetime requirement
|
|
|
|
--> $DIR/normalization-nested.rs:37:29
|
|
|
|
|
|
|
|
|
LL | pub fn test_borrowck<'x>(_: Map<Vec<&'x ()>>, s: &'x str) -> &'static str {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| this data with lifetime `'x`...
|
|
|
|
| ...is used and required to live as long as `'static` here
|
|
|
|
|
|
|
|
|
note: `'static` lifetime requirement introduced by this bound
|
|
|
|
--> $DIR/normalization-nested.rs:33:14
|
|
|
|
|
|
|
|
|
LL | I::Item: 'static;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-03-30 22:27:51 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0759`.
|