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
+10-10
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,11 @@ error: the type `&mut <dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIte
34
34
LL | for item in *things { *item = 0 }
35
35
| ^^^^^^^
36
36
37
-
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
38
-
--> $DIR/issue-20605.rs:5:9
37
+
error: the type `Option<<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item>` is not well-formed
38
+
--> $DIR/issue-20605.rs:5:17
39
39
|
40
40
LL | for item in *things { *item = 0 }
41
-
| ^^^^ doesn't have a size known at compile-time
42
-
|
43
-
= help: the trait `Sized` is not implemented for `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item`
44
-
= note: all local variables must have a statically known size
45
-
= help: unsized locals are gated as an unstable feature
41
+
| ^^^^^^^
46
42
47
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
48
44
--> $DIR/issue-20605.rs:5:5
@@ -54,11 +50,15 @@ LL | for item in *things { *item = 0 }
54
50
note: required by a bound in `None`
55
51
--> $SRC_DIR/core/src/option.rs:LL:COL
56
52
57
-
error: the type `Option<<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item>` is not well-formed
58
-
--> $DIR/issue-20605.rs:5:17
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
59
55
|
60
56
LL | for item in *things { *item = 0 }
61
-
| ^^^^^^^
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
62
63
63
error[E0614]: type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be dereferenced
0 commit comments