31 lines
823 B
Plaintext
31 lines
823 B
Plaintext
error: macros that expand to items must either be surrounded with braces or followed by a semicolon
|
|
--> $DIR/issue-10536.rs:14:22
|
|
|
|
|
LL | assert!({one! two()});
|
|
| ^^
|
|
|
|
error: expected `(` or `{`, found `}`
|
|
--> $DIR/issue-10536.rs:21:22
|
|
|
|
|
LL | assert!({one! two});
|
|
| ^ expected `(` or `{`
|
|
|
|
error: cannot find macro `one!` in this scope
|
|
--> $DIR/issue-10536.rs:14:14
|
|
|
|
|
LL | assert!({one! two()});
|
|
| ^^^
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-10536.rs:14:13
|
|
|
|
|
LL | assert!({one! two()});
|
|
| ^^^^^^^^^^^^ expected bool, found ()
|
|
|
|
|
= note: expected type `bool`
|
|
found type `()`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|