rust/tests/ui/parser/item-needs-block.rs

11 lines
167 B
Rust

trait Trait;
//~^ ERROR expected `{}`, found `;`
impl Trait for ();
//~^ ERROR expected `{}`, found `;`
enum Enum;
//~^ ERROR expected `{}`, found `;`
fn main() {}