fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
697 B23 linesraw
1error: expected one of `.`, `;`, `?`, `else`, or an operator, found `}`
2  --> $DIR/issue-60075.rs:6:10
3   |
4LL |         });
5   |          ^ expected one of `.`, `;`, `?`, `else`, or an operator
6
7error: expected one of `async`, `const`, `crate`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `;`
8  --> $DIR/issue-60075.rs:6:11
9   |
10LL |     fn qux() -> Option<usize> {
11   |                               - unclosed delimiter
12LL |         let _ = if true {
13LL |         });
14   |           ^ help: `}` may belong here
15
16error: expected identifier, found `;`
17  --> $DIR/issue-60075.rs:6:11
18   |
19LL |         });
20   |           ^ expected identifier
21
22error: aborting due to 3 previous errors
23