fork/rust

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

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

master
1.2 KiB39 linesraw
1error[E0308]: mismatched types
2  --> $DIR/range-1.rs:5:19
3   |
4LL |     let _ = 0u32..10i32;
5   |                   ^^^^^ expected `u32`, found `i32`
6
7error[E0277]: the trait bound `bool: Step` is not satisfied
8  --> $DIR/range-1.rs:9:14
9   |
10LL |     for i in false..true {}
11   |              ^^^^^^^^^^^ the trait `Step` is not implemented for `bool`
12   |
13   = help: the following other types implement trait `Step`:
14             char
15             isize
16             i8
17             i16
18             i32
19             i64
20             i128
21             usize
22           and 8 others
23   = note: required for `std::ops::Range<bool>` to implement `Iterator`
24   = note: required for `std::ops::Range<bool>` to implement `IntoIterator`
25
26error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
27  --> $DIR/range-1.rs:14:17
28   |
29LL |     let range = *arr..;
30   |                 ^^^^ doesn't have a size known at compile-time
31   |
32   = help: the trait `Sized` is not implemented for `[{integer}]`
33note: required by a bound in `RangeFrom`
34  --> $SRC_DIR/core/src/ops/range.rs:LL:COL
35
36error: aborting due to 3 previous errors
37
38Some errors have detailed explanations: E0277, E0308.
39For more information about an error, try `rustc --explain E0277`.