]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-infer-call-3.stderr
move interface to the unikernel in the crate hermit-abi
[rust.git] / src / test / ui / regions / regions-infer-call-3.stderr
1 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter 'r in function call due to conflicting requirements
2   --> $DIR/regions-infer-call-3.rs:8:24
3    |
4 LL |     let z = with(|y| { select(x, y) });
5    |                        ^^^^^^^^^^^^
6    |
7 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 8:18...
8   --> $DIR/regions-infer-call-3.rs:8:18
9    |
10 LL |     let z = with(|y| { select(x, y) });
11    |                  ^^^^^^^^^^^^^^^^^^^^
12 note: ...so that reference does not outlive borrowed content
13   --> $DIR/regions-infer-call-3.rs:8:34
14    |
15 LL |     let z = with(|y| { select(x, y) });
16    |                                  ^
17 note: but, the lifetime must be valid for the call at 8:13...
18   --> $DIR/regions-infer-call-3.rs:8:13
19    |
20 LL |     let z = with(|y| { select(x, y) });
21    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
22 note: ...so type `&isize` of expression is valid during the expression
23   --> $DIR/regions-infer-call-3.rs:8:13
24    |
25 LL |     let z = with(|y| { select(x, y) });
26    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28 error: aborting due to previous error
29