rust/src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs

15 lines
304 B
Rust
Raw Normal View History

pub(crate) struct Bar<T> { //~ ERROR `main` function not found
foo: T,
trait T { //~ ERROR expected identifier, found keyword `trait`
//~^ ERROR expected `:`, found `T`
fn foo(&self);
}
impl T for Bar<usize> {
fn foo(&self) {}
}
fn main() {} //~ ERROR this file contains an un-closed delimiter