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
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found `u32`
12
+
...
13
+
LL | Box::new(1..=10) as Box<dyn Iterator>
14
+
| ------------------------------------- return type was inferred to be `Box<dyn Iterator>` here
15
+
|
16
+
= note: expected associated type `<dyn Iterator as Iterator>::Item`
17
+
found type `u32`
18
+
= help: consider constraining the associated type `<dyn Iterator as Iterator>::Item` to `u32` or calling a method that returns `<dyn Iterator as Iterator>::Item`
19
+
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
20
+
21
+
error: aborting due to 2 previous errors
22
+
23
+
Some errors have detailed explanations: E0191, E0271.
24
+
For more information about an error, try `rustc --explain E0191`.
0 commit comments