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