]> git.proxmox.com Git - rustc.git/blame - src/test/ui/loops/loops-reject-lifetime-shadowing-label.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / loops / loops-reject-lifetime-shadowing-label.stderr
CommitLineData
ff7c6d11 1warning: lifetime name `'a` shadows a label name that is already in scope
dc9dc135 2 --> $DIR/loops-reject-lifetime-shadowing-label.rs:21:55
ff7c6d11 3 |
0531ce1d 4LL | 'a: loop {
ff7c6d11 5 | -- first declared here
dc9dc135 6LL | let b = Box::new(|x: &i8| *x) as Box<dyn for <'a> Fn(&'a i8) -> i8>;
fc512014 7 | ^^ label `'a` already in scope
ff7c6d11 8
c295e0f8
XL
9warning: lifetime name `'b` shadows a label name that is already in scope
10 --> $DIR/loops-reject-lifetime-shadowing-label.rs:28:55
11 |
12LL | 'b: {
13 | -- first declared here
14LL | let b = Box::new(|x: &()| ()) as Box<dyn for <'b> Fn(&'b ())>;
15 | ^^ label `'b` already in scope
16
17warning: 2 warnings emitted
ba9703b0 18