]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements |
0731742a | 2 | --> $DIR/regions-escape-method.rs:15:13 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | s.f(|p| p) |
b7449926 XL |
5 | | ^ |
6 | | | |
0731742a XL |
7 | note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 15:9... |
8 | --> $DIR/regions-escape-method.rs:15:9 | |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | s.f(|p| p) |
b7449926 XL |
11 | | ^^^^^ |
12 | = note: ...so that the expression is assignable: | |
13 | expected &i32 | |
14 | found &i32 | |
0731742a XL |
15 | note: but, the lifetime must be valid for the method call at 15:5... |
16 | --> $DIR/regions-escape-method.rs:15:5 | |
b7449926 | 17 | | |
532ac7d7 | 18 | LL | s.f(|p| p) |
b7449926 XL |
19 | | ^^^^^^^^^^ |
20 | note: ...so that a type/lifetime parameter is in scope here | |
0731742a | 21 | --> $DIR/regions-escape-method.rs:15:5 |
b7449926 | 22 | | |
532ac7d7 | 23 | LL | s.f(|p| p) |
b7449926 XL |
24 | | ^^^^^^^^^^ |
25 | ||
26 | error: aborting due to previous error | |
27 |