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