fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
555 B14 linesraw
1error[E0277]: `u8` is not an iterator
2  --> $DIR/bound.rs:2:10
3   |
4LL | struct S<I: Iterator>(I);
5   | ------------------------- required by `S`
6LL | struct T(S<u8>);
7   |          ^^^^^ `u8` is not an iterator
8   |
9   = help: the trait `std::iter::Iterator` is not implemented for `u8`
10   = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.