]> git.lizzy.rs Git - rust.git/blob - src/test/ui/loops/loops-reject-lifetime-shadowing-label.stderr
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[rust.git] / src / test / ui / loops / loops-reject-lifetime-shadowing-label.stderr
1 warning: lifetime name `'a` shadows a label name that is already in scope
2   --> $DIR/loops-reject-lifetime-shadowing-label.rs:21:55
3    |
4 LL |     'a: loop {
5    |     -- first declared here
6 LL |         let b = Box::new(|x: &i8| *x) as Box<dyn for <'a> Fn(&'a i8) -> i8>;
7    |                                                       ^^ label `'a` already in scope
8
9 warning: 1 warning emitted
10