summary refs log tree commit diff
path: root/src/test/ui/issue-28098.stderr
blob: 3a6e1aea288348d77ebef8442f433915c3e8b79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:12:13
   |
LL |     let _ = Iterator::next(&mut ());
   |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `()`
   = note: required by `std::iter::Iterator::next`

error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:15:14
   |
LL |     for _ in false {}
   |              ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `bool`
   = note: required by `std::iter::IntoIterator::into_iter`

error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:18:13
   |
LL |     let _ = Iterator::next(&mut ());
   |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `()`
   = note: required by `std::iter::Iterator::next`

error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:27:13
   |
LL |     let _ = Iterator::next(&mut ());
   |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `()`
   = note: required by `std::iter::Iterator::next`

error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:30:13
   |
LL |     let _ = Iterator::next(&mut ());
   |             ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `()`
   = note: required by `std::iter::Iterator::next`

error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
  --> $DIR/issue-28098.rs:33:14
   |
LL |     for _ in false {}
   |              ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `bool`
   = note: required by `std::iter::IntoIterator::into_iter`

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0277`.