fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
516 B17 linesraw
1error: expected parameter name, found `*`
2  --> $DIR/issue-33413.rs:4:10
3   |
4LL |     fn f(*, a: u8) -> u8 {}
5   |          ^ expected parameter name
6
7error[E0308]: mismatched types
8  --> $DIR/issue-33413.rs:4:23
9   |
10LL |     fn f(*, a: u8) -> u8 {}
11   |        -              ^^ expected `u8`, found `()`
12   |        |
13   |        implicitly returns `()` as its body has no tail or `return` expression
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0308`.