2019-08-25 04:39:28 +02:00
|
|
|
error: expected parameter name, found `*`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-33413.rs:4:10
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2018-10-28 11:54:31 -07:00
|
|
|
LL | fn f(*, a: u8) -> u8 {}
|
2019-08-25 04:39:28 +02:00
|
|
|
| ^ expected parameter name
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2019-10-03 03:39:46 +02:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-33413.rs:4:23
|
|
|
|
|
|
|
|
|
LL | fn f(*, a: u8) -> u8 {}
|
2019-11-15 09:37:01 -08:00
|
|
|
| - ^^ expected `u8`, found `()`
|
2019-10-03 03:39:46 +02:00
|
|
|
| |
|
|
|
|
| implicitly returns `()` as its body has no tail or `return` expression
|
2022-07-19 02:54:51 +00:00
|
|
|
|
|
|
|
|
help: consider returning the local binding `a`
|
|
|
|
|
|
|
|
|
LL | fn f(*, a: u8) -> u8 { a }
|
|
|
|
| +
|
2019-10-03 03:39:46 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2019-10-03 03:39:46 +02:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|