]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/range-1.rs:5:19 |
b7449926 XL |
3 | | |
4 | LL | let _ = 0u32..10i32; | |
60c5eb7d | 5 | | ^^^^^ expected `u32`, found `i32` |
b7449926 | 6 | |
1b1a35ee | 7 | error[E0277]: the trait bound `bool: Step` is not satisfied |
0731742a | 8 | --> $DIR/range-1.rs:9:14 |
b7449926 XL |
9 | | |
10 | LL | for i in false..true {} | |
1b1a35ee | 11 | | ^^^^^^^^^^^ the trait `Step` is not implemented for `bool` |
b7449926 | 12 | | |
1b1a35ee | 13 | = note: required because of the requirements on the impl of `Iterator` for `std::ops::Range<bool>` |
29967ef6 | 14 | = note: required because of the requirements on the impl of `IntoIterator` for `std::ops::Range<bool>` |
136023e0 XL |
15 | note: required by `into_iter` |
16 | --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL | |
17 | | | |
18 | LL | fn into_iter(self) -> Self::IntoIter; | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
20 | |
21 | error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time | |
0731742a | 22 | --> $DIR/range-1.rs:14:17 |
b7449926 XL |
23 | | |
24 | LL | let range = *arr..; | |
25 | | ^^^^^^ doesn't have a size known at compile-time | |
3dfed10e XL |
26 | | |
27 | ::: $SRC_DIR/core/src/ops/range.rs:LL:COL | |
28 | | | |
29 | LL | pub struct RangeFrom<Idx> { | |
1b1a35ee | 30 | | --- required by this bound in `RangeFrom` |
b7449926 | 31 | | |
1b1a35ee | 32 | = help: the trait `Sized` is not implemented for `[{integer}]` |
b7449926 XL |
33 | |
34 | error: aborting due to 3 previous errors | |
35 | ||
48663c56 | 36 | Some errors have detailed explanations: E0277, E0308. |
b7449926 | 37 | For more information about an error, try `rustc --explain E0277`. |