]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/regions/regions-close-associated-type-into-object.nll.stderr
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
[rust.git] / src / test / ui / regions / regions-close-associated-type-into-object.nll.stderr
index 90d38a49c4a8259f0ff407abee329bf8812c5532..92c4956da02d26c0eebb0f3df84f631b215a3591 100644 (file)
@@ -1,36 +1,36 @@
 error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
-  --> $DIR/regions-close-associated-type-into-object.rs:25:5
+  --> $DIR/regions-close-associated-type-into-object.rs:15:5
    |
-LL |     Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
+LL |     Box::new(item)
    |     ^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
 
 error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
-  --> $DIR/regions-close-associated-type-into-object.rs:32:5
+  --> $DIR/regions-close-associated-type-into-object.rs:22:5
    |
-LL |     Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
+LL |     Box::new(item)
    |     ^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
 
 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
-  --> $DIR/regions-close-associated-type-into-object.rs:38:5
+  --> $DIR/regions-close-associated-type-into-object.rs:28:5
    |
-LL |     Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
+LL |     Box::new(item)
    |     ^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
 
 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
-  --> $DIR/regions-close-associated-type-into-object.rs:45:5
+  --> $DIR/regions-close-associated-type-into-object.rs:35:5
    |
-LL |     Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
+LL |     Box::new(item)
    |     ^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
 
 error: aborting due to 4 previous errors
 
-Some errors occurred: E0309, E0310.
+Some errors have detailed explanations: E0309, E0310.
 For more information about an error, try `rustc --explain E0309`.