1 error: attributes cannot be applied to a function parameter's type
2 --> $DIR/fn-arg-doc-comment.rs:16: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:8:5
17 | ^^^^^^^^^ doc comments are not allowed here
19 error[E0658]: attributes on function parameters are unstable
20 --> $DIR/fn-arg-doc-comment.rs:2:5
25 = note: for more information, see https://github.com/rust-lang/rust/issues/60406
26 = help: add `#![feature(param_attrs)]` to the crate attributes to enable
28 error[E0658]: attributes on function parameters are unstable
29 --> $DIR/fn-arg-doc-comment.rs:8:5
34 = note: for more information, see https://github.com/rust-lang/rust/issues/60406
35 = help: add `#![feature(param_attrs)]` to the crate attributes to enable
37 error[E0308]: mismatched types
38 --> $DIR/fn-arg-doc-comment.rs:22:7
41 | ^^ expected u8, found reference
43 = note: expected type `u8`
44 found type `&'static str`
46 error[E0308]: mismatched types
47 --> $DIR/fn-arg-doc-comment.rs:22:11
50 | ^^ expected u8, found reference
52 = note: expected type `u8`
53 found type `&'static str`
55 error[E0308]: mismatched types
56 --> $DIR/fn-arg-doc-comment.rs:29:9
59 | ^^ expected i32, found reference
61 = note: expected type `i32`
62 found type `&'static str`
64 error: aborting due to 8 previous errors
66 Some errors have detailed explanations: E0308, E0658.
67 For more information about an error, try `rustc --explain E0308`.