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

31 lines
945 B
Plaintext
Raw Normal View History

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<T>();
| ^ 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`.