]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-escape-method.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-escape-method.stderr
CommitLineData
b7449926 1error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
0731742a 2 --> $DIR/regions-escape-method.rs:15:13
b7449926 3 |
532ac7d7 4LL | s.f(|p| p)
b7449926
XL
5 | ^
6 |
0731742a
XL
7note: 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 10LL | s.f(|p| p)
b7449926 11 | ^^^^^
60c5eb7d
XL
12note: ...so that the expression is assignable
13 --> $DIR/regions-escape-method.rs:15:13
14 |
15LL | s.f(|p| p)
16 | ^
17 = note: expected `&i32`
18 found `&i32`
0731742a
XL
19note: but, the lifetime must be valid for the method call at 15:5...
20 --> $DIR/regions-escape-method.rs:15:5
b7449926 21 |
532ac7d7 22LL | s.f(|p| p)
b7449926
XL
23 | ^^^^^^^^^^
24note: ...so that a type/lifetime parameter is in scope here
0731742a 25 --> $DIR/regions-escape-method.rs:15:5
b7449926 26 |
532ac7d7 27LL | s.f(|p| p)
b7449926
XL
28 | ^^^^^^^^^^
29
30error: aborting due to previous error
31
e74abb32 32For more information about this error, try `rustc --explain E0495`.