]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | warning: 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 | 4 | LL | 'a: loop { |
ff7c6d11 | 5 | | -- first declared here |
dc9dc135 XL |
6 | LL | let b = Box::new(|x: &i8| *x) as Box<dyn for <'a> Fn(&'a i8) -> i8>; |
7 | | ^^ lifetime 'a already in scope | |
ff7c6d11 | 8 | |
ba9703b0 XL |
9 | warning: 1 warning emitted |
10 |