summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-30318.stderr
blob: c441a92abad92c99cfa345e248ab1415f08fae7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
error[E0753]: expected outer doc comment
  --> $DIR/issue-30318.rs:5:1
   |
LL | //! Misplaced comment...
   | ^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn bar() { }
   | ------------ the inner doc comment doesn't annotate this function
   |
help: to annotate the function, change the doc comment from inner to outer style
   |
LL | /// Misplaced comment...
   |   ~

error: an inner attribute is not permitted in this context
  --> $DIR/issue-30318.rs:9:1
   |
LL | #![test]
   | ^^^^^^^^
LL | fn baz() { }
   | ------------ the inner attribute doesn't annotate this function
   |
   = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
help: to annotate the function, change the attribute from inner to outer style
   |
LL - #![test]
LL + #[test]
   |

error[E0753]: expected outer doc comment
  --> $DIR/issue-30318.rs:13:1
   |
LL | /*! Misplaced comment... */
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn bat() { }
   | ------------ the inner doc comment doesn't annotate this function
   |
help: to annotate the function, change the doc comment from inner to outer style
   |
LL | /** Misplaced comment... */
   |   ~

error[E0753]: expected outer doc comment
  --> $DIR/issue-30318.rs:19:1
   |
LL | //! Misplaced comment...
   | ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
   |
LL - //! Misplaced comment...
LL + // Misplaced comment...
   |

error[E0753]: expected outer doc comment
  --> $DIR/issue-30318.rs:23:1
   |
LL | /*! Misplaced comment... */
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
   |
LL - /*! Misplaced comment... */
LL + /* Misplaced comment... */
   |

error: expected item after doc comment
  --> $DIR/issue-30318.rs:23:1
   |
LL | //! Misplaced comment...
   | ------------------------ other attributes here
...
LL | /*! Misplaced comment... */
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment doesn't document anything

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0753`.