summaryrefslogtreecommitdiffstats
path: root/tests/ui/implied-bounds/normalization-nested.lifetime.stderr
blob: e020230d86a48500eba31f9b04db91d176144dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
error[E0759]: `fn` parameter has lifetime `'x` but it needs to satisfy a `'static` lifetime requirement
  --> $DIR/normalization-nested.rs:35:28
   |
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
   |
note: `'static` lifetime requirement introduced by this bound
  --> $DIR/normalization-nested.rs:33:14
   |
LL |     I::Item: 'static;
   |              ^^^^^^^

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

For more information about this error, try `rustc --explain E0759`.