]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/ui/range/range-1.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / range / range-1.stderr
... / ...
CommitLineData
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 = note: required because of the requirements on the impl of `Iterator` for `std::ops::Range<bool>`
14 = note: required because of the requirements on the impl of `IntoIterator` for `std::ops::Range<bool>`
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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
22 --> $DIR/range-1.rs:14:17
23 |
24LL | let range = *arr..;
25 | ^^^^^^ doesn't have a size known at compile-time
26 |
27 ::: $SRC_DIR/core/src/ops/range.rs:LL:COL
28 |
29LL | pub struct RangeFrom<Idx> {
30 | --- required by this bound in `RangeFrom`
31 |
32 = help: the trait `Sized` is not implemented for `[{integer}]`
33
34error: aborting due to 3 previous errors
35
36Some errors have detailed explanations: E0277, E0308.
37For more information about an error, try `rustc --explain E0277`.