1 error: attributes cannot be applied to a function parameter's type
2 --> $DIR/fn-arg-doc-comment.rs:14: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:7:5
17 | ^^^^^^^^^ doc comments are not allowed here
19 error[E0308]: arguments to this function are incorrect
20 --> $DIR/fn-arg-doc-comment.rs:22:5
23 | ^ -- -- expected `u8`, found `&str`
25 | expected `u8`, found `&str`
27 note: function defined here
28 --> $DIR/fn-arg-doc-comment.rs:1:8
45 error[E0308]: mismatched types
46 --> $DIR/fn-arg-doc-comment.rs:26:9
49 | --- ^^ expected `i32`, found `&str`
51 | arguments to this function are incorrect
53 note: function defined here
54 --> $DIR/fn-arg-doc-comment.rs:14:4
56 LL | fn bar(id: #[allow(dead_code)] i32) {}
57 | ^^^ ---------------------------
59 error: aborting due to 5 previous errors
61 For more information about this error, try `rustc --explain E0308`.