rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs
2023-01-11 09:32:08 +00:00

13 lines
291 B
Rust

trait T {
fn foo(&self);
pub(crate) struct Bar<T>();
//~^ ERROR struct is not supported in `trait`s or `impl`s
impl T for Bar<usize> {
//~^ ERROR implementation is not supported in `trait`s or `impl`s
fn foo(&self) {}
}
fn main() {} //~ ERROR this file contains an unclosed delimiter