]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/macro-context.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / macros / macro-context.stderr
1 error: macro expansion ignores token `;` and any following
2 --> $DIR/macro-context.rs:3:15
3 |
4 LL | () => ( i ; typeof );
5 | ^
6 ...
7 LL | let a: m!();
8 | ---- caused by the macro expansion here
9 |
10 = note: the usage of `m!` is likely invalid in type context
11
12 error: macro expansion ignores token `typeof` and any following
13 --> $DIR/macro-context.rs:3:17
14 |
15 LL | () => ( i ; typeof );
16 | ^^^^^^
17 ...
18 LL | let i = m!();
19 | ---- caused by the macro expansion here
20 |
21 = note: the usage of `m!` is likely invalid in expression context
22
23 error: macro expansion ignores token `;` and any following
24 --> $DIR/macro-context.rs:3:15
25 |
26 LL | () => ( i ; typeof );
27 | ^
28 ...
29 LL | m!() => {}
30 | ---- caused by the macro expansion here
31 |
32 = note: the usage of `m!` is likely invalid in pattern context
33
34 error: expected expression, found reserved keyword `typeof`
35 --> $DIR/macro-context.rs:3:17
36 |
37 LL | () => ( i ; typeof );
38 | ^^^^^^ expected expression
39 ...
40 LL | 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
45 error[E0412]: cannot find type `i` in this scope
46 --> $DIR/macro-context.rs:3:13
47 |
48 LL | () => ( i ; typeof );
49 | ^ help: a builtin type with a similar name exists: `i8`
50 ...
51 LL | 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
56 error[E0425]: cannot find value `i` in this scope
57 --> $DIR/macro-context.rs:3:13
58 |
59 LL | () => ( i ; typeof );
60 | ^ not found in this scope
61 ...
62 LL | 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
67 warning: trailing semicolon in macro used in expression position
68 --> $DIR/macro-context.rs:3:15
69 |
70 LL | () => ( i ; typeof );
71 | ^
72 ...
73 LL | 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
81 error: aborting due to 6 previous errors; 1 warning emitted
82
83 Some errors have detailed explanations: E0412, E0425.
84 For more information about an error, try `rustc --explain E0412`.