]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/fn-arg-doc-comment.stderr
New upstream version 1.63.0+dfsg1
[rustc.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:14: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:7:5
15 |
16 LL | /// Other
17 | ^^^^^^^^^ doc comments are not allowed here
18
19 error[E0308]: arguments to this function are incorrect
20 --> $DIR/fn-arg-doc-comment.rs:22:5
21 |
22 LL | f("", "");
23 | ^ -- -- expected `u8`, found `&str`
24 | |
25 | expected `u8`, found `&str`
26 |
27 note: function defined here
28 --> $DIR/fn-arg-doc-comment.rs:1:8
29 |
30 LL | pub fn f(
31 | ^
32 LL | / /// Comment
33 LL | |
34 LL | |
35 LL | |
36 LL | | id: u8,
37 | |__________-
38 LL | / /// Other
39 LL | |
40 LL | |
41 LL | |
42 LL | | a: u8,
43 | |_________-
44
45 error[E0308]: mismatched types
46 --> $DIR/fn-arg-doc-comment.rs:26:9
47 |
48 LL | bar("");
49 | --- ^^ expected `i32`, found `&str`
50 | |
51 | arguments to this function are incorrect
52 |
53 note: function defined here
54 --> $DIR/fn-arg-doc-comment.rs:14:4
55 |
56 LL | fn bar(id: #[allow(dead_code)] i32) {}
57 | ^^^ ---------------------------
58
59 error: aborting due to 5 previous errors
60
61 For more information about this error, try `rustc --explain E0308`.