Closed
Description
The following code:
pub fn f(
/// Comment
id: u8)
{}
Results in the following error:
error: expected pattern, found `/// Comment`
--> src/lib.rs:2:5
|
2 | /// Comment
| ^^^^^^^^^^^ expected pattern
At best, the error is confusing. Ideally it should not be an error, but if doc comments are not allowed in a parameter list, the error should be clearer.