]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/bound.stderr
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[rust.git] / tests / ui / iterators / bound.stderr
1 error[E0277]: `u8` is not an iterator
2   --> $DIR/bound.rs:2:10
3    |
4 LL | struct T(S<u8>);
5    |          ^^^^^ `u8` is not an iterator
6    |
7    = help: the trait `Iterator` is not implemented for `u8`
8    = 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`
9 note: required by a bound in `S`
10   --> $DIR/bound.rs:1:13
11    |
12 LL | struct S<I: Iterator>(I);
13    |             ^^^^^^^^ required by this bound in `S`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.