fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: this file contains an un-closed delimiter 2 --> $DIR/issue-2354.rs:18:66 3 | 4LL | fn foo() { 5 | - un-closed delimiter 6... 7LL | match Some(10) { 8 | - this delimiter might not be properly closed... 9... 10LL | } 11 | - ...as it matches this but it has different indentation 12... 13LL | 14 | ^ 15 16error[E0601]: `main` function not found in crate `issue_2354` 17 --> $DIR/issue-2354.rs:1:1 18 | 19LL | / fn foo() { 20LL | | 21LL | | 22LL | | 23... | 24LL | | fn main() {} 25LL | | 26 | |_________________________________________________________________^ the main function must be defined at the crate level (in `$DIR/issue-2354.rs`) 27 | 28note: here is a function named `main` 29 --> $DIR/issue-2354.rs:17:1 30 | 31LL | fn main() {} 32 | ^^^^^^^^^^^^ 33 = note: you have one or more functions named `main` not defined at the crate level 34 = help: either move the `main` function definitions or attach the `#[main]` attribute to one of them 35 36error: aborting due to 2 previous errors 37 38For more information about this error, try `rustc --explain E0601`.