]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-arg-doc-comment.stderr
Rollup merge of #55530 - ljedrz:speed_up_String_from_utf16, r=SimonSapin
[rust.git] / src / test / ui / parser / fn-arg-doc-comment.stderr
1 error: documentation comments cannot be applied to method arguments
2   --> $DIR/fn-arg-doc-comment.rs:2:5
3    |
4 LL |     /// Comment
5    |     ^^^^^^^^^^^ doc comments are not allowed here
6
7 error: documentation comments cannot be applied to method arguments
8   --> $DIR/fn-arg-doc-comment.rs:6:5
9    |
10 LL |     /// Other
11    |     ^^^^^^^^^ doc comments are not allowed here
12
13 error: attributes cannot be applied to method arguments
14   --> $DIR/fn-arg-doc-comment.rs:12:8
15    |
16 LL | fn foo(#[allow(dead_code)] id: i32) {}
17    |        ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
18
19 error: attributes cannot be applied to a method argument's type
20   --> $DIR/fn-arg-doc-comment.rs:16:12
21    |
22 LL | fn bar(id: #[allow(dead_code)] i32) {}
23    |            ^^^^^^^^^^^^^^^^^^^ attributes are not allowed here
24
25 error[E0308]: mismatched types
26   --> $DIR/fn-arg-doc-comment.rs:22:7
27    |
28 LL |     f("", "");
29    |       ^^ expected u8, found reference
30    |
31    = note: expected type `u8`
32               found type `&'static str`
33
34 error[E0308]: mismatched types
35   --> $DIR/fn-arg-doc-comment.rs:22:11
36    |
37 LL |     f("", "");
38    |           ^^ expected u8, found reference
39    |
40    = note: expected type `u8`
41               found type `&'static str`
42
43 error[E0308]: mismatched types
44   --> $DIR/fn-arg-doc-comment.rs:29:9
45    |
46 LL |     foo("");
47    |         ^^ expected i32, found reference
48    |
49    = note: expected type `i32`
50               found type `&'static str`
51
52 error[E0308]: mismatched types
53   --> $DIR/fn-arg-doc-comment.rs:33:9
54    |
55 LL |     bar("");
56    |         ^^ expected i32, found reference
57    |
58    = note: expected type `i32`
59               found type `&'static str`
60
61 error: aborting due to 8 previous errors
62
63 For more information about this error, try `rustc --explain E0308`.