Skip to content

Commit aaa3e76

Browse files
committedDec 22, 2023
Update test outputs
1 parent acb6f17 commit aaa3e76

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed
 

‎tests/ui/associated-inherent-types/issue-109071.no_gate.stderr

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ error[E0223]: ambiguous associated type
3333
--> $DIR/issue-109071.rs:15:22
3434
|
3535
LL | fn T() -> Option<Self::Item> {}
36-
| ^^^^^^^^^^ help: use fully-qualified syntax: `<Windows<T> as IntoIterator>::Item`
36+
| ^^^^^^^^^^
37+
|
38+
help: use fully-qualified syntax
39+
|
40+
LL | fn T() -> Option<<Windows<T> as IntoAsyncIterator>::Item> {}
41+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42+
LL | fn T() -> Option<<Windows<T> as IntoIterator>::Item> {}
43+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3744

3845
error: aborting due to 4 previous errors
3946

‎tests/ui/async-await/for-await-consumes-iter.stderr

+4-9
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ LL | let iter = core::async_iter::from_iter(0..3);
55
| ---- move occurs because `iter` has type `FromIter<std::ops::Range<i32>>`, which does not implement the `Copy` trait
66
LL | let mut count = 0;
77
LL | for await i in iter {
8-
| -------------------
9-
| | |
10-
| | value moved here
11-
| inside of this loop
8+
| ---- `iter` moved due to this method call
129
...
1310
LL | for await i in iter {
1411
| ^^^^ value used here after move
1512
|
16-
help: consider cloning the value if the performance cost is acceptable
13+
note: `into_async_iter` takes ownership of the receiver `self`, which moves `iter`
14+
--> $SRC_DIR/core/src/async_iter/async_iter.rs:LL:COL
15+
help: you can `clone` the value and consume it, but this might not be your desired behavior
1716
|
1817
LL | for await i in iter.clone() {
1918
| ++++++++
20-
help: borrow this binding in the pattern to avoid moving the value
21-
|
22-
LL | for await i in ref iter {
23-
| +++
2419

2520
error: aborting due to 1 previous error
2621

‎tests/ui/suggestions/suggest-trait-in-ufcs-in-hrtb.stderr

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ error[E0223]: ambiguous associated type
22
--> $DIR/suggest-trait-in-ufcs-in-hrtb.rs:5:38
33
|
44
LL | impl<S> Foo for Bar<S> where for<'a> <&'a S>::Item: Foo {}
5-
| ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<&'a S as IntoIterator>::Item`
5+
| ^^^^^^^^^^^^^
6+
|
7+
help: use fully-qualified syntax
8+
|
9+
LL | impl<S> Foo for Bar<S> where for<'a> <&'a S as IntoAsyncIterator>::Item: Foo {}
10+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11+
LL | impl<S> Foo for Bar<S> where for<'a> <&'a S as IntoIterator>::Item: Foo {}
12+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
613

714
error: aborting due to 1 previous error
815

‎tests/ui/typeck/issue-110052.stderr

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ error[E0223]: ambiguous associated type
22
--> $DIR/issue-110052.rs:6:30
33
|
44
LL | for<'iter> dyn Validator<<&'iter I>::Item>:,
5-
| ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<&'iter I as IntoIterator>::Item`
5+
| ^^^^^^^^^^^^^^^^
6+
|
7+
help: use fully-qualified syntax
8+
|
9+
LL | for<'iter> dyn Validator<<&'iter I as IntoAsyncIterator>::Item>:,
10+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11+
LL | for<'iter> dyn Validator<<&'iter I as IntoIterator>::Item>:,
12+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
613

714
error: aborting due to 1 previous error
815

0 commit comments

Comments
 (0)