rust/src/test/ui/parser/issue-30318.rs

8 lines
191 B
Rust
Raw Normal View History

fn foo() { }
//! Misplaced comment...
//~^ ERROR expected outer doc comment
//~| NOTE inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
fn main() { }