fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
862 B26 linesraw
1error: this file contains an unclosed delimiter
2  --> $DIR/issue-62881.rs:6:52
3   |
4LL | fn f() -> isize { fn f() -> isize {} pub f<
5   |                 - unclosed delimiter
6...
7LL |
8   |                                                    ^
9
10error: missing `fn` or `struct` for function or struct definition
11  --> $DIR/issue-62881.rs:3:41
12   |
13LL | fn f() -> isize { fn f() -> isize {} pub f<
14   |                                         ^
15
16error[E0308]: mismatched types
17  --> $DIR/issue-62881.rs:3:29
18   |
19LL | fn f() -> isize { fn f() -> isize {} pub f<
20   |                      -      ^^^^^ expected `isize`, found `()`
21   |                      |
22   |                      implicitly returns `()` as its body has no tail or `return` expression
23
24error: aborting due to 3 previous errors
25
26For more information about this error, try `rustc --explain E0308`.