2017-12-10 13:47:55 -06:00
|
|
|
error: macro expansion ignores token `;` and any following
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-context.rs:3:15
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | () => ( i ; typeof );
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^
|
2018-10-23 12:07:34 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let a: m!();
|
2018-10-23 12:07:34 -05:00
|
|
|
| ---- caused by the macro expansion here
|
|
|
|
|
|
|
|
|
= note: the usage of `m!` is likely invalid in type context
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: macro expansion ignores token `typeof` and any following
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-context.rs:3:17
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | () => ( i ; typeof );
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^
|
2018-10-23 12:07:34 -05:00
|
|
|
...
|
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
|
2018-10-23 12:07:34 -05:00
|
|
|
|
|
|
|
|
= note: the usage of `m!` is likely invalid in expression context
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: macro expansion ignores token `;` and any following
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-context.rs:3:15
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | () => ( i ; typeof );
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^
|
2018-10-23 12:07:34 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | m!() => {}
|
2018-10-23 12:07:34 -05:00
|
|
|
| ---- caused by the macro expansion here
|
|
|
|
|
|
|
|
|
= note: the usage of `m!` is likely invalid in pattern context
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: expected expression, found reserved keyword `typeof`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-context.rs:3:17
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | () => ( i ; typeof );
|
2018-02-19 01:08:23 -06:00
|
|
|
| ^^^^^^ expected expression
|
2017-12-10 13:47:55 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | m!();
|
2017-12-10 13:47:55 -06:00
|
|
|
| ----- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-12-10 13:47:55 -06:00
|
|
|
|
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
|
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= 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
|
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= 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`.
|