rust/src/test/ui/macros/macro-context.stderr

71 lines
2.2 KiB
Plaintext
Raw Normal View History

error: macro expansion ignores token `;` and any following
2018-12-25 09:56:47 -06:00
--> $DIR/macro-context.rs:3:15
|
2019-03-09 06:03:44 -06:00
LL | () => ( i ; typeof );
| ^
...
2018-02-22 18:42:32 -06:00
LL | let a: m!();
| ---- caused by the macro expansion here
|
= note: the usage of `m!` is likely invalid in type context
error: macro expansion ignores token `typeof` and any following
2018-12-25 09:56:47 -06:00
--> $DIR/macro-context.rs:3:17
|
2019-03-09 06:03:44 -06:00
LL | () => ( i ; typeof );
| ^^^^^^
...
2018-02-22 18:42:32 -06:00
LL | let i = m!();
2018-10-24 14:52:24 -05:00
| ---- caused by the macro expansion here
|
= note: the usage of `m!` is likely invalid in expression context
error: macro expansion ignores token `;` and any following
2018-12-25 09:56:47 -06:00
--> $DIR/macro-context.rs:3:15
|
2019-03-09 06:03:44 -06:00
LL | () => ( i ; typeof );
| ^
...
2018-02-22 18:42:32 -06:00
LL | m!() => {}
| ---- caused by the macro expansion here
|
= note: the usage of `m!` is likely invalid in pattern context
error: expected expression, found reserved keyword `typeof`
2018-12-25 09:56:47 -06:00
--> $DIR/macro-context.rs:3:17
|
2019-03-09 06:03:44 -06:00
LL | () => ( i ; typeof );
| ^^^^^^ expected expression
...
2018-02-22 18:42:32 -06:00
LL | m!();
| ----- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-03-17 02:55:28 -05:00
error[E0412]: cannot find type `i` in this scope
--> $DIR/macro-context.rs:3:13
|
LL | () => ( i ; typeof );
| ^ help: a builtin type with a similar name exists: `i8`
...
LL | let a: m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-03-17 02:55:28 -05:00
error[E0425]: cannot find value `i` in this scope
--> $DIR/macro-context.rs:3:13
|
LL | () => ( i ; typeof );
| ^ help: a local variable with a similar name exists: `a`
...
LL | let i = m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-03-17 02:55:28 -05:00
error: aborting due to 6 previous errors
2018-03-15 10:13:47 -05:00
2020-03-17 02:55:28 -05:00
Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.