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

11 lines
167 B
Rust
Raw Normal View History

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