]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-2354.stderr
Rollup merge of #58901 - ebarnard:just-copying, r=sfackler
[rust.git] / src / test / ui / parser / issue-2354.stderr
1 error: this file contains an un-closed delimiter
2   --> $DIR/issue-2354.rs:15:66
3    |
4 LL | fn foo() {
5    |          - un-closed delimiter
6 LL |   match Some(10) {
7    |                  - this delimiter might not be properly closed...
8 ...
9 LL | }
10    | - ...as it matches this but it has different indentation
11 ...
12 LL |
13    |                                                                  ^
14
15 error[E0601]: `main` function not found in crate `issue_2354`
16    |
17    = note: the main function must be defined at the crate level but you have one or more functions named 'main' that are not defined at the crate level. Either move the definition or attach the `#[main]` attribute to override this behavior.
18 note: here is a function named 'main'
19   --> $DIR/issue-2354.rs:14:1
20    |
21 LL | fn main() {}
22    | ^^^^^^^^^^^^
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0601`.