]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28098.stderr
Rollup merge of #53349 - memoryruins:nll-tests, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-28098.stderr
1 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
2   --> $DIR/issue-28098.rs:12:13
3    |
4 LL |     let _ = Iterator::next(&mut ());
5    |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
6    |
7    = help: the trait `std::iter::Iterator` is not implemented for `()`
8    = note: required by `std::iter::Iterator::next`
9
10 error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
11   --> $DIR/issue-28098.rs:15:14
12    |
13 LL |     for _ in false {}
14    |              ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
15    |
16    = help: the trait `std::iter::Iterator` is not implemented for `bool`
17    = note: required by `std::iter::IntoIterator::into_iter`
18
19 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
20   --> $DIR/issue-28098.rs:18:13
21    |
22 LL |     let _ = Iterator::next(&mut ());
23    |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
24    |
25    = help: the trait `std::iter::Iterator` is not implemented for `()`
26    = note: required by `std::iter::Iterator::next`
27
28 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
29   --> $DIR/issue-28098.rs:27:13
30    |
31 LL |     let _ = Iterator::next(&mut ());
32    |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
33    |
34    = help: the trait `std::iter::Iterator` is not implemented for `()`
35    = note: required by `std::iter::Iterator::next`
36
37 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
38   --> $DIR/issue-28098.rs:30:13
39    |
40 LL |     let _ = Iterator::next(&mut ());
41    |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
42    |
43    = help: the trait `std::iter::Iterator` is not implemented for `()`
44    = note: required by `std::iter::Iterator::next`
45
46 error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
47   --> $DIR/issue-28098.rs:33:14
48    |
49 LL |     for _ in false {}
50    |              ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
51    |
52    = help: the trait `std::iter::Iterator` is not implemented for `bool`
53    = note: required by `std::iter::IntoIterator::into_iter`
54
55 error: aborting due to 6 previous errors
56
57 For more information about this error, try `rustc --explain E0277`.