]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs
Rollup merge of #75464 - poliorcetics:intra-links-panic-and-ascii, r=jyn514
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-impl-trait.rs
1 fn main() {}
2
3 impl T for () { //~ ERROR cannot find trait `T` in this scope
4
5 fn foo(&self) {}
6
7 trait T { //~ ERROR trait is not supported in `trait`s or `impl`s
8     fn foo(&self);
9 }
10
11 pub(crate) struct Bar<T>(); //~ ERROR struct is not supported in `trait`s or `impl`s
12
13 //~ ERROR this file contains an unclosed delimiter