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