fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
924 B23 linesraw
1error[E0015]: cannot convert `std::ops::Range<i32>` into an iterator in constants
2  --> $DIR/const-for.rs:5:14
3   |
4LL |     for _ in 0..5 {}
5   |              ^^^^
6   |
7note: impl defined here, but it is not `const`
8  --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
9   = note: calls in constants are limited to constant functions, tuple structs and tuple variants
10   = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
11
12error[E0015]: cannot call non-const fn `<std::ops::Range<i32> as Iterator>::next` in constants
13  --> $DIR/const-for.rs:5:14
14   |
15LL |     for _ in 0..5 {}
16   |              ^^^^
17   |
18   = note: calls in constants are limited to constant functions, tuple structs and tuple variants
19   = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0015`.