fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
856 B21 linesraw
1error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
2  --> $DIR/projection-no-regions-fn.rs:13:5
3   |
4LL |     Box::new(x.next())
5   |     ^^^^^^^^^^^^^^^^^^
6   |
7   = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
8   = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
9
10error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
11  --> $DIR/projection-no-regions-fn.rs:28:5
12   |
13LL |     Box::new(x.next())
14   |     ^^^^^^^^^^^^^^^^^^
15   |
16   = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
17   = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0309`.