fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
522 B20 linesraw
1error: cannot capture late-bound lifetime in constant
2  --> $DIR/in_closure.rs:16:29
3   |
4LL | fn test<'a>() {
5   |         -- lifetime defined here
6LL |     let _ = || {
7LL |         let _: [u8; inner::<'a>()];
8   |                             ^^
9
10error: cannot capture late-bound lifetime in constant
11  --> $DIR/in_closure.rs:17:29
12   |
13LL | fn test<'a>() {
14   |         -- lifetime defined here
15...
16LL |         let _ = [0; inner::<'a>()];
17   |                             ^^
18
19error: aborting due to 2 previous errors
20