]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-trait.rs
1 trait T {
2     fn foo(&self);
3
4 pub(crate) struct Bar<T>();
5 //~^ ERROR struct is not supported in `trait`s or `impl`s
6
7 impl T for Bar<usize> {
8 //~^ ERROR implementation is not supported in `trait`s or `impl`s
9 fn foo(&self) {}
10 }
11
12 fn main() {} //~ ERROR this file contains an unclosed delimiter