summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs
blob: 090a17b413dda582e9ea71ff3d427f3fc66088ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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