]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/macro/trait-non-item-macros.stderr
Auto merge of #91840 - JakobDegen:fix_early_otherwise, r=oli-obk
[rust.git] / src / test / ui / parser / macro / trait-non-item-macros.stderr
1 error: macro expansion ignores token `2` and any following
2   --> $DIR/trait-non-item-macros.rs:3:9
3    |
4 LL |         $a
5    |         ^^
6 ...
7 LL |     bah!(2);
8    |     ------- caused by the macro expansion here
9    |
10    = note: the usage of `bah!` is likely invalid in trait item context
11
12 error[E0308]: mismatched types
13   --> $DIR/trait-non-item-macros.rs:12:33
14    |
15 LL |     let _recovery_witness: () = 0;
16    |                            --   ^ expected `()`, found integer
17    |                            |
18    |                            expected due to this
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0308`.