]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup
[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