fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
929 B29 linesraw
1error: this file contains an un-closed delimiter
2  --> $DIR/issue-62881.rs:6:53
3   |
4LL | fn f() -> isize { fn f() -> isize {} pub f<
5   |                 - un-closed 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   |
24   = note: expected type `isize`
25              found type `()`
26
27error: aborting due to 3 previous errors
28
29For more information about this error, try `rustc --explain E0308`.