fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
894 B30 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: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `)`
11  --> $DIR/issue-58856-2.rs:11:1
12   |
13LL |     }
14   |      - expected one of 10 possible tokens here
15LL | }
16   | ^ unexpected token
17
18error[E0407]: method `how_are_you` is not a member of trait `Howness`
19  --> $DIR/issue-58856-2.rs:6:5
20   |
21LL | /     fn how_are_you(&self -> Empty {
22LL | |
23LL | |
24LL | |         Empty
25LL | |     }
26   | |_____^ not a member of trait `Howness`
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0407`.