@@ -686,12 +686,12 @@ LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
686686 |
687687note: method `filter` is not const because trait `Iterator` is not const
688688 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
689- ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
690689 |
691- = note: this method is not const
690+ = note: this trait is not const
691+ ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
692692 ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
693693 |
694- = note: this trait is not const
694+ = note: this method is not const
695695 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
696696
697697error[E0015]: cannot call non-const method `<Filter<std::ops::Range<i32>, {closure@$DIR/typeck_type_placeholder_item.rs:240:29: 240:32}> as Iterator>::map::<i32, {closure@$DIR/typeck_type_placeholder_item.rs:240:49: 240:52}>` in constants
@@ -702,12 +702,12 @@ LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
702702 |
703703note: method `map` is not const because trait `Iterator` is not const
704704 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
705- ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
706705 |
707- = note: this method is not const
706+ = note: this trait is not const
707+ ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
708708 ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
709709 |
710- = note: this trait is not const
710+ = note: this method is not const
711711 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
712712
713713error: aborting due to 83 previous errors
0 commit comments