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
| help: replace with an appropriate return type: `impl Iterator<Item = usize>`
439
439
440
-
error[E0277]: the trait bound `std::ops::Range<{integer}>: Iterator` is not satisfied
441
-
--> $DIR/typeck_type_placeholder_item.rs:229:22
442
-
|
443
-
LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
444
-
| ^^^^^^ `std::ops::Range<{integer}>` is not an iterator
445
-
|
446
-
= help: the trait `~const Iterator` is not implemented for `std::ops::Range<{integer}>`
447
-
note: the trait `Iterator` is implemented for `std::ops::Range<{integer}>`, but that implementation is not `const`
448
-
--> $DIR/typeck_type_placeholder_item.rs:229:14
449
-
|
450
-
LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
451
-
| ^^^^^^^
452
-
453
440
error[E0277]: the trait bound `Filter<std::ops::Range<{integer}>, [closure@$DIR/typeck_type_placeholder_item.rs:229:29: 229:32]>: Iterator` is not satisfied
454
441
--> $DIR/typeck_type_placeholder_item.rs:229:45
455
442
|
@@ -677,7 +664,7 @@ LL | const D: _ = 42;
677
664
| not allowed in type signatures
678
665
| help: replace with the correct type: `i32`
679
666
680
-
error: aborting due to 73 previous errors
667
+
error: aborting due to 72 previous errors
681
668
682
669
Some errors have detailed explanations: E0121, E0277, E0282, E0403.
683
670
For more information about an error, try `rustc --explain E0121`.
0 commit comments