]> git.proxmox.com Git - rustc.git/blame - src/test/ui/range/range-1.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / 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 |
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
15note: required by `into_iter`
16 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
17 |
18LL | fn into_iter(self) -> Self::IntoIter;
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
b7449926
XL
20
21error[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 |
24LL | 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 |
29LL | 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
34error: aborting due to 3 previous errors
35
48663c56 36Some errors have detailed explanations: E0277, E0308.
b7449926 37For more information about an error, try `rustc --explain E0277`.