forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
64 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// aux-build:invalid-punct-ident.rs | ||
|
||
// We use `main` not found below as a witness for error recovery in proc macro expansion. | ||
|
||
#[macro_use] //~ ERROR `main` function not found | ||
#[macro_use] | ||
extern crate invalid_punct_ident; | ||
|
||
lexer_failure!(); | ||
//~^ ERROR proc macro panicked | ||
//~| ERROR unexpected closing delimiter: `)` | ||
|
||
fn main() { | ||
let _recovery_witness: () = 0; //~ ERROR mismatched types | ||
} |
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,26 +1,25 @@ | ||
error: unexpected closing delimiter: `)` | ||
--> $DIR/invalid-punct-ident-4.rs:8:1 | ||
--> $DIR/invalid-punct-ident-4.rs:6:1 | ||
| | ||
LL | lexer_failure!(); | ||
| ^^^^^^^^^^^^^^^^^ unexpected closing delimiter | ||
| | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: proc macro panicked | ||
--> $DIR/invalid-punct-ident-4.rs:8:1 | ||
--> $DIR/invalid-punct-ident-4.rs:6:1 | ||
| | ||
LL | lexer_failure!(); | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0601]: `main` function not found in crate `invalid_punct_ident_4` | ||
--> $DIR/invalid-punct-ident-4.rs:5:1 | ||
error[E0308]: mismatched types | ||
--> $DIR/invalid-punct-ident-4.rs:11:33 | ||
| | ||
LL | / #[macro_use] | ||
LL | | extern crate invalid_punct_ident; | ||
LL | | | ||
LL | | lexer_failure!(); | ||
| |_________________^ consider adding a `main` function to `$DIR/invalid-punct-ident-4.rs` | ||
LL | let _recovery_witness: () = 0; | ||
| -- ^ expected `()`, found integer | ||
| | | ||
| expected due to this | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0601`. | ||
For more information about this error, try `rustc --explain E0308`. |