You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/generic-associated-types/iterable.stderr
+10-16Lines changed: 10 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -25,33 +25,27 @@ LL | type Item<'a> where T: 'a = <std::slice::Iter<'a, T> as Iterator>::Item
25
25
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
26
26
27
27
error[E0271]: type mismatch resolving `for<'a> <<std::vec::Vec<T> as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <std::vec::Vec<T> as Iterable>::Item<'a>`
28
-
--> $DIR/iterable.rs:19:5
28
+
--> $DIR/iterable.rs:19:30
29
29
|
30
-
LL | trait Iterable {
31
-
| -------------- required by `Iterable`
30
+
LL | trait Iterable {
31
+
| -------------- required by `Iterable`
32
32
...
33
-
LL | / fn iter<'a>(&'a self) -> Self::Iter<'a> {
34
-
LL | |
35
-
LL | | self.iter()
36
-
LL | | }
37
-
| |_____^ expected associated type, found reference
33
+
LL | fn iter<'a>(&'a self) -> Self::Iter<'a> {
34
+
| ^^^^^^^^^^^^^^ expected associated type, found reference
38
35
|
39
36
= note: expected associated type `<std::vec::Vec<T> as Iterable>::Item<'_>`
40
37
found reference `&T`
41
38
= note: consider constraining the associated type `<std::vec::Vec<T> as Iterable>::Item<'_>` to `&_` or calling a method that returns `<std::vec::Vec<T> as Iterable>::Item<'_>`
42
39
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
43
40
44
41
error[E0271]: type mismatch resolving `for<'a> <<[T] as Iterable>::Iter<'a> as std::iter::Iterator>::Item == <[T] as Iterable>::Item<'a>`
45
-
--> $DIR/iterable.rs:31:5
42
+
--> $DIR/iterable.rs:31:30
46
43
|
47
-
LL | trait Iterable {
48
-
| -------------- required by `Iterable`
44
+
LL | trait Iterable {
45
+
| -------------- required by `Iterable`
49
46
...
50
-
LL | / fn iter<'a>(&'a self) -> Self::Iter<'a> {
51
-
LL | |
52
-
LL | | self.iter()
53
-
LL | | }
54
-
| |_____^ expected associated type, found reference
47
+
LL | fn iter<'a>(&'a self) -> Self::Iter<'a> {
48
+
| ^^^^^^^^^^^^^^ expected associated type, found reference
55
49
|
56
50
= note: expected associated type `<[T] as Iterable>::Item<'_>`
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-20413.stderr
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -151,16 +151,13 @@ LL | | }
151
151
= note: required because of the requirements on the impl of `Foo` for `NoData<T>`
152
152
153
153
error[E0275]: overflow evaluating the requirement `NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<T>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>: Foo`
154
-
--> $DIR/issue-20413.rs:10:3
154
+
--> $DIR/issue-20413.rs:10:6
155
155
|
156
-
LL | trait Foo {
157
-
| --------- required by `Foo`
156
+
LL | trait Foo {
157
+
| --------- required by `Foo`
158
158
...
159
-
LL | / fn answer(self) {
160
-
LL | |
161
-
LL | | let val: NoData<T> = NoData;
162
-
LL | | }
163
-
| |___^
159
+
LL | fn answer(self) {
160
+
| ^^^^^^
164
161
|
165
162
= help: consider adding a `#![recursion_limit="256"]` attribute to your crate
166
163
= note: required because of the requirements on the impl of `Foo` for `NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<NoData<T>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
0 commit comments