Custom diagnostic when trying to doc comment argument
When writing
```
pub fn f(
/// Comment
id: u8,
) {}
```
Produce a targeted diagnostic
```
error: documentation comments cannot be applied to method arguments
--> $DIR/fn-arg-doc-comment.rs:2:5
|
LL | /// Comment
| ^^^^^^^^^^^ doc comments are not allowed here
```
Fix #54801.
|
||
|---|---|---|
| .. | ||
| label-static.rs | ||
| label-static.stderr | ||
| label-underscore.rs | ||
| label-underscore.stderr | ||
| label_break_value_continue.rs | ||
| label_break_value_continue.stderr | ||
| label_break_value_illegal_uses.rs | ||
| label_break_value_illegal_uses.stderr | ||
| label_break_value_unlabeled_break.rs | ||
| label_break_value_unlabeled_break.stderr | ||