fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0753]: expected outer doc comment 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] 28 | 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 46 | 47LL | //! Misplaced comment... 48 | ^^^^^^^^^^^^^^^^^^^^^^^^ 49 | 50 = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items 51help: you might have meant to write a regular comment 52 | 53LL - //! Misplaced comment... 54LL + // Misplaced comment... 55 | 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... */ 68 | 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 78 79error: aborting due to 6 previous errors 80 81For more information about this error, try `rustc --explain E0753`.