1 error: attributes cannot be applied to a function parameter's type
2 --> $DIR/fn-arg-doc-comment.rs:12:12
4 LL | fn bar(id: #[allow(dead_code)] i32) {}
5 | ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
7 error: documentation comments cannot be applied to function parameters
8 --> $DIR/fn-arg-doc-comment.rs:2:5
11 | ^^^^^^^^^^^ doc comments are not allowed here
13 error: documentation comments cannot be applied to function parameters
14 --> $DIR/fn-arg-doc-comment.rs:6:5
17 | ^^^^^^^^^ doc comments are not allowed here
19 error[E0308]: mismatched types
20 --> $DIR/fn-arg-doc-comment.rs:18:7
23 | ^^ expected u8, found reference
25 = note: expected type `u8`
26 found type `&'static str`
28 error[E0308]: mismatched types
29 --> $DIR/fn-arg-doc-comment.rs:18:11
32 | ^^ expected u8, found reference
34 = note: expected type `u8`
35 found type `&'static str`
37 error[E0308]: mismatched types
38 --> $DIR/fn-arg-doc-comment.rs:25:9
41 | ^^ expected i32, found reference
43 = note: expected type `i32`
44 found type `&'static str`
46 error: aborting due to 6 previous errors
48 For more information about this error, try `rustc --explain E0308`.