-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not complain about missing
fn main()
in some cases
- Loading branch information
Showing
16 changed files
with
50 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,16 @@ | ||
error: this file contains an un-closed delimiter | ||
--> $DIR/issue-2354.rs:18:66 | ||
--> $DIR/issue-2354.rs:15:53 | ||
| | ||
LL | fn foo() { | ||
| - un-closed delimiter | ||
... | ||
LL | match Some(10) { | ||
| - this delimiter might not be properly closed... | ||
... | ||
LL | } | ||
| - ...as it matches this but it has different indentation | ||
... | ||
LL | | ||
| ^ | ||
|
||
error[E0601]: `main` function not found in crate `issue_2354` | ||
--> $DIR/issue-2354.rs:1:1 | ||
| | ||
LL | / fn foo() { | ||
LL | | | ||
LL | | | ||
LL | | | ||
... | | ||
LL | | fn main() {} | ||
LL | | | ||
| |_________________________________________________________________^ the main function must be defined at the crate level (in `$DIR/issue-2354.rs`) | ||
| | ||
note: here is a function named `main` | ||
--> $DIR/issue-2354.rs:17:1 | ||
| | ||
LL | fn main() {} | ||
| ^^^^^^^^^^^^ | ||
= note: you have one or more functions named `main` not defined at the crate level | ||
= help: either move the `main` function definitions or attach the `#[main]` attribute to one of them | ||
| ^ | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0601`. |
3 changes: 1 addition & 2 deletions
3
src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters