diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-05-10 12:12:39 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-05-10 12:29:17 -0700 |
| commit | 6e74155b0bbcf67b8319dd292ac793abcbf16ee7 (patch) | |
| tree | 38554b8c82c4bb335866eb09c7698410b1549883 /tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs | |
| parent | fa5964fa9198e5c23e457821aa88bef34833b571 (diff) | |
| download | rust-6e74155b0bbcf67b8319dd292ac793abcbf16ee7.tar.gz rust-6e74155b0bbcf67b8319dd292ac793abcbf16ee7.zip | |
fix tests after s/${length()}/${len()}/
Diffstat (limited to 'tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs')
| -rw-r--r-- | tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs b/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs index 05c65fe8690..9fec546ecd6 100644 --- a/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs +++ b/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs @@ -18,23 +18,27 @@ macro_rules! curly__rhs_dollar__no_round { //~^ ERROR `count` can not be placed inside the inner-most repetition } +#[rustfmt::skip] // autoformatters can break a few of the error traces macro_rules! no_curly__no_rhs_dollar__round { ( $( $i:ident ),* ) => { count(i) }; //~^ ERROR cannot find function `count` in this scope //~| ERROR cannot find value `i` in this scope } +#[rustfmt::skip] // autoformatters can break a few of the error traces macro_rules! no_curly__no_rhs_dollar__no_round { ( $i:ident ) => { count(i) }; //~^ ERROR cannot find function `count` in this scope //~| ERROR cannot find value `i` in this scope } +#[rustfmt::skip] // autoformatters can break a few of the error traces macro_rules! no_curly__rhs_dollar__round { ( $( $i:ident ),* ) => { count($i) }; //~^ ERROR variable 'i' is still repeating at this depth } +#[rustfmt::skip] // autoformatters can break a few of the error traces macro_rules! no_curly__rhs_dollar__no_round { ( $i:ident ) => { count($i) }; //~^ ERROR cannot find function `count` in this scope @@ -44,7 +48,7 @@ macro_rules! no_curly__rhs_dollar__no_round { macro_rules! dollar_dollar_in_the_lhs { ( $$ $a:ident ) => { - //~^ ERROR unexpected token: $ + //~^ ERROR unexpected token: $ }; } @@ -85,7 +89,7 @@ macro_rules! metavar_depth_is_not_literal { } macro_rules! metavar_in_the_lhs { - ( ${ length() } ) => { + ( ${ len() } ) => { //~^ ERROR unexpected token: { //~| ERROR expected one of: `*`, `+`, or `?` }; @@ -109,6 +113,7 @@ macro_rules! metavar_without_parens { //~| ERROR expected expression, found `$` } +#[rustfmt::skip] macro_rules! open_brackets_without_tokens { ( $( $i:ident ),* ) => { ${ {} } }; //~^ ERROR expected expression, found `$` |
