|
| 1 | +error: expected one of `)` or `,`, found `->` |
| 2 | + --> $DIR/issue-58856-2.rs:3:26 |
| 3 | + | |
| 4 | +LL | fn how_are_you(&self -> Empty { |
| 5 | + | - -^^ |
| 6 | + | | | |
| 7 | + | | help: `)` may belong here |
| 8 | + | unclosed delimiter |
| 9 | + |
| 10 | +error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `)` |
| 11 | + --> $DIR/issue-58856-2.rs:10:1 |
| 12 | + | |
| 13 | +LL | } |
| 14 | + | - expected one of 11 possible tokens here |
| 15 | +LL | } |
| 16 | + | ^ unexpected token |
| 17 | + |
| 18 | +error[E0407]: method `how_are_you` is not a member of trait `Howness` |
| 19 | + --> $DIR/issue-58856-2.rs:3:5 |
| 20 | + | |
| 21 | +LL | / fn how_are_you(&self -> Empty { |
| 22 | +LL | | //~^ ERROR expected one of `)` or `,`, found `->` |
| 23 | +LL | | //~| ERROR method `how_are_you` is not a member of trait `Howness` |
| 24 | +LL | | //~| ERROR cannot find type `Empty` in this scope |
| 25 | +LL | | Empty |
| 26 | +LL | | //~^ ERROR cannot find value `Empty` in this scope |
| 27 | +LL | | } |
| 28 | + | |_____^ not a member of trait `Howness` |
| 29 | + |
| 30 | +error[E0412]: cannot find type `Empty` in this scope |
| 31 | + --> $DIR/issue-58856-2.rs:3:29 |
| 32 | + | |
| 33 | +LL | fn how_are_you(&self -> Empty { |
| 34 | + | ^^^^^ not found in this scope |
| 35 | +help: possible candidates are found in other modules, you can import them into scope |
| 36 | + | |
| 37 | +LL | use std::io::Empty; |
| 38 | + | |
| 39 | +LL | use std::iter::Empty; |
| 40 | + | |
| 41 | + |
| 42 | +error[E0425]: cannot find value `Empty` in this scope |
| 43 | + --> $DIR/issue-58856-2.rs:7:9 |
| 44 | + | |
| 45 | +LL | Empty |
| 46 | + | ^^^^^ not found in this scope |
| 47 | +help: possible candidate is found in another module, you can import it into scope |
| 48 | + | |
| 49 | +LL | use std::sync::mpsc::TryRecvError::Empty; |
| 50 | + | |
| 51 | + |
| 52 | +error: aborting due to 5 previous errors |
| 53 | + |
| 54 | +Some errors occurred: E0407, E0412, E0425. |
| 55 | +For more information about an error, try `rustc --explain E0407`. |
0 commit comments