]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/loops-reject-lifetime-shadowing-label.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / loops-reject-lifetime-shadowing-label.stderr
index d44b1b7b62351d7c7332005b4a2badf82ac4f84a..999cfb9cc3c6b62b83825531f4e9bb7d96930030 100644 (file)
@@ -1,16 +1,18 @@
 warning: lifetime name `'a` shadows a label name that is already in scope
   --> $DIR/loops-reject-lifetime-shadowing-label.rs:31:51
    |
-30 |     'a: loop {
+LL |     'a: loop {
    |     -- first declared here
-31 |         let b = Box::new(|x: &i8| *x) as Box<for <'a> Fn(&'a i8) -> i8>;
+LL |         let b = Box::new(|x: &i8| *x) as Box<for <'a> Fn(&'a i8) -> i8>;
    |                                                   ^^ lifetime 'a already in scope
 
 error: compilation successful
   --> $DIR/loops-reject-lifetime-shadowing-label.rs:39:1
    |
-39 | / pub fn main() { //~ ERROR compilation successful
-40 | |     foo();
-41 | | }
+LL | / pub fn main() { //~ ERROR compilation successful
+LL | |     foo();
+LL | | }
    | |_^
 
+error: aborting due to previous error
+