]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-struct.rs
1 pub(crate) struct Bar<T> {
2   foo: T,
3
4 trait T { //~ ERROR expected identifier, found keyword `trait`
5     fn foo(&self);
6 }
7
8
9 impl T for Bar<usize> {
10 fn foo(&self) {}
11 }
12
13 fn main() {} //~ ERROR this file contains an unclosed delimiter