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: tests/ui/for/issue-20605.next.stderr
+49-2
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,53 @@ error: the type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is
20
20
LL | for item in *things { *item = 0 }
21
21
| ^^^^^^^
22
22
23
-
error: aborting due to 3 previous errors
23
+
error[E0277]: `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not an iterator
24
+
--> $DIR/issue-20605.rs:5:17
25
+
|
26
+
LL | for item in *things { *item = 0 }
27
+
| ^^^^^^^ `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not an iterator
28
+
|
29
+
= help: the trait `Iterator` is not implemented for `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter`
30
+
31
+
error: the type `&mut <dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed
32
+
--> $DIR/issue-20605.rs:5:17
33
+
|
34
+
LL | for item in *things { *item = 0 }
35
+
| ^^^^^^^
36
+
37
+
error[E0614]: type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be dereferenced
38
+
--> $DIR/issue-20605.rs:5:27
39
+
|
40
+
LL | for item in *things { *item = 0 }
41
+
| ^^^^^
42
+
43
+
error[E0277]: the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time
44
+
--> $DIR/issue-20605.rs:5:9
45
+
|
46
+
LL | for item in *things { *item = 0 }
47
+
| ^^^^ doesn't have a size known at compile-time
48
+
|
49
+
= help: the trait `Sized` is not implemented for `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item`
50
+
= note: all local variables must have a statically known size
51
+
= help: unsized locals are gated as an unstable feature
52
+
53
+
error: the type `Option<<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item>` is not well-formed
54
+
--> $DIR/issue-20605.rs:5:17
55
+
|
56
+
LL | for item in *things { *item = 0 }
57
+
| ^^^^^^^
58
+
59
+
error[E0277]: the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time
60
+
--> $DIR/issue-20605.rs:5:5
61
+
|
62
+
LL | for item in *things { *item = 0 }
63
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
64
+
|
65
+
= help: the trait `Sized` is not implemented for `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item`
66
+
note: required by a bound in `None`
67
+
--> $SRC_DIR/core/src/option.rs:LL:COL
68
+
69
+
error: aborting due to 9 previous errors
24
70
25
-
For more information about this error, try `rustc --explain E0277`.
71
+
Some errors have detailed explanations: E0277, E0614.
72
+
For more information about an error, try `rustc --explain E0277`.
//[next]~^^ ERROR the type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed
8
-
//[next]~| ERROR the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
6
+
//[current]~^ ERROR the size for values of type
7
+
//[next]~^^ ERROR the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
8
+
//[next]~| ERROR the size for values of type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` cannot be known at compilation time
9
+
//[next]~| ERROR the type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed
10
+
//[next]~| ERROR `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not an iterator
11
+
//[next]~| ERROR the type `&mut <dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed
12
+
//[next]~| ERROR the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time
13
+
//[next]~| ERROR the type `Option<<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item>` is not well-formed
14
+
//[next]~| ERROR the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time
15
+
//[next]~| ERROR type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be dereferenced
16
+
// FIXME(-Ztrait-solver=next): these error messages are horrible and have to be
0 commit comments