mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
110 lines
3.4 KiB
Plaintext
110 lines
3.4 KiB
Plaintext
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:2:28
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| -------------- ^^^^^^^ `()` is not an iterator
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:2:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `bool` is not an iterator
|
|
--> $DIR/issue-28098.rs:7:14
|
|
|
|
|
LL | for _ in false {}
|
|
| ^^^^^ `bool` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `bool`
|
|
= note: required for `bool` to implement `IntoIterator`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:10:28
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| -------------- ^^^^^^^ `()` is not an iterator
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:10:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:2:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:20:28
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| -------------- ^^^^^^^ `()` is not an iterator
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:20:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:25:28
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| -------------- ^^^^^^^ `()` is not an iterator
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:25:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error[E0277]: `bool` is not an iterator
|
|
--> $DIR/issue-28098.rs:29:14
|
|
|
|
|
LL | for _ in false {}
|
|
| ^^^^^ `bool` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `bool`
|
|
= note: required for `bool` to implement `IntoIterator`
|
|
|
|
error[E0277]: `()` is not an iterator
|
|
--> $DIR/issue-28098.rs:20:13
|
|
|
|
|
LL | let _ = Iterator::next(&mut ());
|
|
| ^^^^^^^^^^^^^^ `()` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `()`
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|