]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range-1.stderr
Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplett
[rust.git] / src / test / ui / range / range-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/range-1.rs:5:19
3    |
4 LL |     let _ = 0u32..10i32;
5    |                   ^^^^^ expected `u32`, found `i32`
6
7 error[E0277]: the trait bound `bool: Step` is not satisfied
8   --> $DIR/range-1.rs:9:14
9    |
10 LL |     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              i128
16              i16
17              i32
18              i64
19              i8
20              isize
21              u128
22            and 5 others
23    = note: required because of the requirements on the impl of `Iterator` for `std::ops::Range<bool>`
24    = note: required because of the requirements on the impl of `IntoIterator` for `std::ops::Range<bool>`
25
26 error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
27   --> $DIR/range-1.rs:14:17
28    |
29 LL |     let range = *arr..;
30    |                 ^^^^^^ doesn't have a size known at compile-time
31    |
32    = help: the trait `Sized` is not implemented for `[{integer}]`
33 note: required by a bound in `RangeFrom`
34   --> $SRC_DIR/core/src/ops/range.rs:LL:COL
35    |
36 LL | pub struct RangeFrom<Idx> {
37    |                      ^^^ required by this bound in `RangeFrom`
38
39 error: aborting due to 3 previous errors
40
41 Some errors have detailed explanations: E0277, E0308.
42 For more information about an error, try `rustc --explain E0277`.