Reword EOF in macro arm message
This commit is contained in:
parent
950a3edf27
commit
d011313d84
4 changed files with 7 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ error: no rules expected the token `async`
|
|||
LL | r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
|
||||
| ^^^^^ no rules expected this token in macro call
|
||||
|
||||
error: expected one of `move`, `|`, or `||`, found the end of the macro arm
|
||||
error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
|
||||
--> <::edition_kw_macro_2015::passes_ident macros>:1:25
|
||||
|
|
||||
LL | ( $ i : ident ) => ( $ i )
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ error: no rules expected the token `async`
|
|||
LL | r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
|
||||
| ^^^^^ no rules expected this token in macro call
|
||||
|
||||
error: expected one of `move`, `|`, or `||`, found the end of the macro arm
|
||||
error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
|
||||
--> <::edition_kw_macro_2018::passes_ident macros>:1:25
|
||||
|
|
||||
LL | ( $ i : ident ) => ( $ i )
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: expected expression, found the end of the macro arm
|
||||
error: macro expansion ends with an incomplete expression: expected expression
|
||||
--> $DIR/macro-in-expression-context-2.rs:5:16
|
||||
|
|
||||
LL | macro_rules! empty { () => () }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue