rust/src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs

13 lines
272 B
Rust
Raw Normal View History

trait T {
//~^ ERROR `main` function not found in crate `missing_close_brace_in_trait`
fn foo(&self);
pub(crate) struct Bar<T>();
//~^ ERROR expected one of
impl T for Bar<usize> {
fn foo(&self) {}
}
fn main() {} //~ ERROR this file contains an un-closed delimiter