1 error: documentation comments cannot be applied to method arguments
2 --> $DIR/fn-arg-doc-comment.rs:2:5
5 | ^^^^^^^^^^^ doc comments are not allowed here
7 error: documentation comments cannot be applied to method arguments
8 --> $DIR/fn-arg-doc-comment.rs:6:5
11 | ^^^^^^^^^ doc comments are not allowed here
13 error: attributes cannot be applied to method arguments
14 --> $DIR/fn-arg-doc-comment.rs:12:8
16 LL | fn foo(#[allow(dead_code)] id: i32) {}
17 | ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
19 error: attributes cannot be applied to a method argument's type
20 --> $DIR/fn-arg-doc-comment.rs:16:12
22 LL | fn bar(id: #[allow(dead_code)] i32) {}
23 | ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
25 error[E0308]: mismatched types
26 --> $DIR/fn-arg-doc-comment.rs:22:7
29 | ^^ expected u8, found reference
31 = note: expected type `u8`
32 found type `&'static str`
34 error[E0308]: mismatched types
35 --> $DIR/fn-arg-doc-comment.rs:22:11
38 | ^^ expected u8, found reference
40 = note: expected type `u8`
41 found type `&'static str`
43 error[E0308]: mismatched types
44 --> $DIR/fn-arg-doc-comment.rs:29:9
47 | ^^ expected i32, found reference
49 = note: expected type `i32`
50 found type `&'static str`
52 error[E0308]: mismatched types
53 --> $DIR/fn-arg-doc-comment.rs:33:9
56 | ^^ expected i32, found reference
58 = note: expected type `i32`
59 found type `&'static str`
61 error: aborting due to 8 previous errors
63 For more information about this error, try `rustc --explain E0308`.