]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-arg-doc-comment.stderr
Rollup merge of #62491 - GuillaumeGomez:fix-pin-urls-for-option, r=QuietMisdreavus
[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:16: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:8:5
15    |
16 LL |     /// Other
17    |     ^^^^^^^^^ doc comments are not allowed here
18
19 error[E0658]: attributes on function parameters are unstable
20   --> $DIR/fn-arg-doc-comment.rs:2:5
21    |
22 LL |     /// Comment
23    |     ^^^^^^^^^^^
24    |
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
27
28 error[E0658]: attributes on function parameters are unstable
29   --> $DIR/fn-arg-doc-comment.rs:8:5
30    |
31 LL |     /// Other
32    |     ^^^^^^^^^
33    |
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
36
37 error[E0308]: mismatched types
38   --> $DIR/fn-arg-doc-comment.rs:22:7
39    |
40 LL |     f("", "");
41    |       ^^ expected u8, found reference
42    |
43    = note: expected type `u8`
44               found type `&'static str`
45
46 error[E0308]: mismatched types
47   --> $DIR/fn-arg-doc-comment.rs:22:11
48    |
49 LL |     f("", "");
50    |           ^^ expected u8, found reference
51    |
52    = note: expected type `u8`
53               found type `&'static str`
54
55 error[E0308]: mismatched types
56   --> $DIR/fn-arg-doc-comment.rs:29:9
57    |
58 LL |     bar("");
59    |         ^^ expected i32, found reference
60    |
61    = note: expected type `i32`
62               found type `&'static str`
63
64 error: aborting due to 8 previous errors
65
66 Some errors have detailed explanations: E0308, E0658.
67 For more information about an error, try `rustc --explain E0308`.