fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
861 B34 linesraw
1error: expected one of `)` or `,`, found `->`
2  --> $DIR/issue-58856-2.rs:6:26
3   |
4LL |     fn how_are_you(&self -> Empty {
5   |                   -     -^^
6   |                   |     |
7   |                   |     help: `)` may belong here
8   |                   unclosed delimiter
9
10error: non-item in item list
11  --> $DIR/issue-58856-2.rs:11:1
12   |
13LL | impl Howness for () {
14   |                     - item list starts here
15...
16LL | }
17   | ^
18   | |
19   | non-item starts here
20   | item list ends here
21
22error[E0407]: method `how_are_you` is not a member of trait `Howness`
23  --> $DIR/issue-58856-2.rs:6:5
24   |
25LL | /     fn how_are_you(&self -> Empty {
26LL | |
27LL | |
28LL | |         Empty
29LL | |     }
30   | |_____^ not a member of trait `Howness`
31
32error: aborting due to 3 previous errors
33
34For more information about this error, try `rustc --explain E0407`.