]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_reify.stderr
Incorporate a stray test
[rust.git] / src / test / ui / nll / mir_check_cast_reify.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/mir_check_cast_reify.rs:46:25
3    |
4 LL |     let f: fn(_) -> _ = foo;
5    |                         ^^^
6
7 error: borrowed data escapes outside of closure
8   --> $DIR/mir_check_cast_reify.rs:48:5
9    |
10 LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
11    |            - `x` is a reference that is only valid in the closure body
12 ...
13 LL |     f(x)
14    |     ^^^^ `x` escapes the closure body here
15
16 error: aborting due to previous error
17