mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
tests: add a revision to macro_backtrace without -Zmacro-backtrace.
This commit is contained in:
parent
4c7eb59e81
commit
96af578cd9
@ -1,5 +1,5 @@
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:9:20
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | / macro_rules! pong {
|
||||
LL | | () => { syntax error };
|
||||
@ -11,7 +11,7 @@ LL | pong!();
|
||||
| -------- in this macro invocation
|
||||
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:9:20
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | / macro_rules! pong {
|
||||
LL | | () => { syntax error };
|
||||
@ -31,7 +31,7 @@ LL | () => { pong ! () ; }
|
||||
| in this expansion of `ping!`
|
||||
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:9:20
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | / macro_rules! pong {
|
||||
LL | | () => { syntax error };
|
35
src/test/ui/macro_backtrace/main.default.stderr
Normal file
35
src/test/ui/macro_backtrace/main.default.stderr
Normal file
@ -0,0 +1,35 @@
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | () => { syntax error };
|
||||
| ^^^^^ expected one of 8 possible tokens
|
||||
...
|
||||
LL | pong!();
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | () => { syntax error };
|
||||
| ^^^^^ expected one of 8 possible tokens
|
||||
...
|
||||
LL | ping!();
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
||||
LL | () => { syntax error };
|
||||
| ^^^^^ expected one of 8 possible tokens
|
||||
...
|
||||
LL | deep!();
|
||||
| -------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Test that the macro backtrace facility works
|
||||
// aux-build:ping.rs
|
||||
// compile-flags: -Z macro-backtrace
|
||||
// revisions: default -Zmacro-backtrace
|
||||
//[-Zmacro-backtrace] compile-flags: -Z macro-backtrace
|
||||
|
||||
#[macro_use] extern crate ping;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user