error: this file contains an unclosed delimiter --> $DIR/missing-close-brace-in-trait.rs:12:65 | LL | trait T { | - unclosed delimiter ... LL | fn main() {} | ^ error: missing `fn`, `type`, `const`, or `static` for item declaration --> $DIR/missing-close-brace-in-trait.rs:5:11 | LL | pub(crate) struct Bar(); | ^ missing `fn`, `type`, `const`, or `static` error[E0601]: `main` function not found in crate `missing_close_brace_in_trait` --> $DIR/missing-close-brace-in-trait.rs:1:1 | LL | / trait T { LL | | LL | | fn foo(&self); LL | | ... | LL | | LL | | fn main() {} | |________________________________________________________________^ consider adding a `main` function to `$DIR/missing-close-brace-in-trait.rs` error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0601`.