fork/rust

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

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

1.39.0
407 B16 linesraw
1error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
2  --> $DIR/issue-10636-2.rs:5:25
3   |
4LL |     option.map(|some| 42;
5   |               -         ^ help: `)` may belong here
6   |               |
7   |               unclosed delimiter
8
9error: expected expression, found `)`
10  --> $DIR/issue-10636-2.rs:8:1
11   |
12LL | }
13   | ^ expected expression
14
15error: aborting due to 2 previous errors
16