fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: macro expansion ignores token `;` and any following 2 --> $DIR/macro-context.rs:3:15 3 | 4LL | () => ( i ; typeof ); 5 | ^ 6... 7LL | let a: m!(); 8 | ---- caused by the macro expansion here 9 | 10 = note: the usage of `m!` is likely invalid in type context 11 12error: macro expansion ignores token `typeof` and any following 13 --> $DIR/macro-context.rs:3:17 14 | 15LL | () => ( i ; typeof ); 16 | ^^^^^^ 17... 18LL | let i = m!(); 19 | ---- caused by the macro expansion here 20 | 21 = note: the usage of `m!` is likely invalid in expression context 22 23error: macro expansion ignores token `;` and any following 24 --> $DIR/macro-context.rs:3:15 25 | 26LL | () => ( i ; typeof ); 27 | ^ 28... 29LL | m!() => {} 30 | ---- caused by the macro expansion here 31 | 32 = note: the usage of `m!` is likely invalid in pattern context 33 34error: expected expression, found reserved keyword `typeof` 35 --> $DIR/macro-context.rs:3:17 36 | 37LL | () => ( i ; typeof ); 38 | ^^^^^^ expected expression 39... 40LL | m!(); 41 | ---- in this macro invocation 42 | 43 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) 44 45error[E0412]: cannot find type `i` in this scope 46 --> $DIR/macro-context.rs:3:13 47 | 48LL | () => ( i ; typeof ); 49 | ^ help: a builtin type with a similar name exists: `i8` 50... 51LL | let a: m!(); 52 | ---- in this macro invocation 53 | 54 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) 55 56error[E0425]: cannot find value `i` in this scope 57 --> $DIR/macro-context.rs:3:13 58 | 59LL | () => ( i ; typeof ); 60 | ^ not found in this scope 61... 62LL | let i = m!(); 63 | ---- in this macro invocation 64 | 65 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) 66 67warning: trailing semicolon in macro used in expression position 68 --> $DIR/macro-context.rs:3:15 69 | 70LL | () => ( i ; typeof ); 71 | ^ 72... 73LL | let i = m!(); 74 | ---- in this macro invocation 75 | 76 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 77 = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> 78 = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default 79 = note: this warning originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) 80 81error: aborting due to 6 previous errors; 1 warning emitted 82 83Some errors have detailed explanations: E0412, E0425. 84For more information about an error, try `rustc --explain E0412`. 85Future incompatibility report: Future breakage diagnostic: 86warning: trailing semicolon in macro used in expression position 87 --> $DIR/macro-context.rs:3:15 88 | 89LL | () => ( i ; typeof ); 90 | ^ 91... 92LL | let i = m!(); 93 | ---- in this macro invocation 94 | 95 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 96 = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> 97 = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default 98 = note: this warning originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) 99