fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.1 KiB28 linesraw
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: std::iter::Step` is not satisfied
8  --> $DIR/range-1.rs:9:14
9   |
10LL |     for i in false..true {}
11   |              ^^^^^^^^^^^ the trait `std::iter::Step` is not implemented for `bool`
12   |
13   = note: required because of the requirements on the impl of `std::iter::Iterator` for `std::ops::Range<bool>`
14
15error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
16  --> $DIR/range-1.rs:14:17
17   |
18LL |     let range = *arr..;
19   |                 ^^^^^^ doesn't have a size known at compile-time
20   |
21   = help: the trait `std::marker::Sized` is not implemented for `[{integer}]`
22   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
23   = note: required by `std::ops::RangeFrom`
24
25error: aborting due to 3 previous errors
26
27Some errors have detailed explanations: E0277, E0308.
28For more information about an error, try `rustc --explain E0277`.