rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs
2023-01-11 09:32:08 +00:00

14 lines
232 B
Rust

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