]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-arg-doc-comment.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / fn-arg-doc-comment.stderr
1 error: attributes cannot be applied to a function parameter's type
2   --> $DIR/fn-arg-doc-comment.rs:12:12
3    |
4 LL | fn bar(id: #[allow(dead_code)] i32) {}
5    |            ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
6
7 error: documentation comments cannot be applied to function parameters
8   --> $DIR/fn-arg-doc-comment.rs:2:5
9    |
10 LL |     /// Comment
11    |     ^^^^^^^^^^^ doc comments are not allowed here
12
13 error: documentation comments cannot be applied to function parameters
14   --> $DIR/fn-arg-doc-comment.rs:6:5
15    |
16 LL |     /// Other
17    |     ^^^^^^^^^ doc comments are not allowed here
18
19 error[E0308]: mismatched types
20   --> $DIR/fn-arg-doc-comment.rs:18:7
21    |
22 LL |     f("", "");
23    |       ^^ expected `u8`, found `&str`
24
25 error[E0308]: mismatched types
26   --> $DIR/fn-arg-doc-comment.rs:18:11
27    |
28 LL |     f("", "");
29    |           ^^ expected `u8`, found `&str`
30
31 error[E0308]: mismatched types
32   --> $DIR/fn-arg-doc-comment.rs:23:9
33    |
34 LL |     bar("");
35    |         ^^ expected `i32`, found `&str`
36
37 error: aborting due to 6 previous errors
38
39 For more information about this error, try `rustc --explain E0308`.