]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issues/issue-30318.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-30318.stderr
CommitLineData
f9f354fc 1error[E0753]: expected outer doc comment
c295e0f8
XL
2 --> $DIR/issue-30318.rs:5:1
3 |
4LL | //! Misplaced comment...
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6LL |
7LL | fn bar() { }
8 | ------------ the inner doc comment doesn't annotate this function
9 |
10help: to annotate the function, change the doc comment from inner to outer style
11 |
12LL | /// Misplaced comment...
13 | ~
14
15error: an inner attribute is not permitted in this context
16 --> $DIR/issue-30318.rs:9:1
17 |
18LL | #![test]
19 | ^^^^^^^^
20LL | fn baz() { }
21 | ------------ the inner attribute doesn't annotate this function
22 |
23 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
24help: to annotate the function, change the attribute from inner to outer style
25 |
26LL - #![test]
27LL + #[test]
923072b8 28 |
c295e0f8
XL
29
30error[E0753]: expected outer doc comment
31 --> $DIR/issue-30318.rs:13:1
32 |
33LL | /*! Misplaced comment... */
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
35LL |
36LL | fn bat() { }
37 | ------------ the inner doc comment doesn't annotate this function
38 |
39help: to annotate the function, change the doc comment from inner to outer style
40 |
41LL | /** Misplaced comment... */
42 | ~
43
44error[E0753]: expected outer doc comment
45 --> $DIR/issue-30318.rs:19:1
0bf4aa26
XL
46 |
47LL | //! Misplaced comment...
48 | ^^^^^^^^^^^^^^^^^^^^^^^^
49 |
50 = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
c295e0f8
XL
51help: you might have meant to write a regular comment
52 |
53LL - //! Misplaced comment...
54LL + // Misplaced comment...
923072b8 55 |
c295e0f8
XL
56
57error[E0753]: expected outer doc comment
58 --> $DIR/issue-30318.rs:23:1
59 |
60LL | /*! Misplaced comment... */
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 |
63 = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
64help: you might have meant to write a regular comment
65 |
66LL - /*! Misplaced comment... */
67LL + /* Misplaced comment... */
923072b8 68 |
c295e0f8
XL
69
70error: expected item after doc comment
71 --> $DIR/issue-30318.rs:23:1
72 |
73LL | //! Misplaced comment...
74 | ------------------------ other attributes here
75...
76LL | /*! Misplaced comment... */
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment doesn't document anything
0bf4aa26 78
c295e0f8 79error: aborting due to 6 previous errors
0bf4aa26 80
f9f354fc 81For more information about this error, try `rustc --explain E0753`.