]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-33413.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / issue-33413.stderr
1 error: expected parameter name, found `*`
2   --> $DIR/issue-33413.rs:4:10
3    |
4 LL |     fn f(*, a: u8) -> u8 {}
5    |          ^ expected parameter name
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-33413.rs:4:23
9    |
10 LL |     fn f(*, a: u8) -> u8 {}
11    |        -              ^^ expected u8, found ()
12    |        |
13    |        implicitly returns `()` as its body has no tail or `return` expression
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0308`.