]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conservative_impl_trait.stderr
Auto merge of #95841 - ChrisDenton:pipe-server, r=m-ou-se
[rust.git] / src / test / ui / conservative_impl_trait.stderr
1 error[E0277]: `()` is not an iterator
2   --> $DIR/conservative_impl_trait.rs:3:33
3    |
4 LL | fn will_ice(something: &u32) -> impl Iterator<Item = &u32> {
5    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
6    |
7    = help: the trait `Iterator` is not implemented for `()`
8
9 error[E0277]: `()` is not an iterator
10   --> $DIR/conservative_impl_trait.rs:3:60
11    |
12 LL |   fn will_ice(something: &u32) -> impl Iterator<Item = &u32> {
13    |  ____________________________________________________________^
14 LL | |
15 LL | |
16 LL | | }
17    | |_^ `()` is not an iterator
18    |
19    = help: the trait `Iterator` is not implemented for `()`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0277`.