diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-23 01:59:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-23 01:59:20 +0200 |
| commit | 74380b3336d6d93b74f65f0a1034b29b53aae268 (patch) | |
| tree | 6b20831f5e7fe26a17165678bc6c0ea78d492621 /src/test | |
| parent | 07c82e183bc92b76f10bbd7c3165dc959ec1ccad (diff) | |
| parent | b8106b59d2faaea57301ad000d7787b70c5b2985 (diff) | |
| download | rust-74380b3336d6d93b74f65f0a1034b29b53aae268.tar.gz rust-74380b3336d6d93b74f65f0a1034b29b53aae268.zip | |
Rollup merge of #62068 - ia0:fix_meta_var, r=petrochenkov
Fix meta-variable binding errors in macros The errors are either: - The meta-variable used in the right-hand side is not bound (or defined) in the left-hand side. - The meta-variable used in the right-hand side does not repeat with the same kleene operator as its binder in the left-hand side. Either it does not repeat enough, or it uses a different operator somewhere. This change should have no semantic impact. Found by https://github.com/rust-lang/rust/pull/62008
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/issues/issue-22814.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/issues/issue-22814.rs b/src/test/ui/issues/issue-22814.rs index b008c751064..bcc7a8a5ae0 100644 --- a/src/test/ui/issues/issue-22814.rs +++ b/src/test/ui/issues/issue-22814.rs @@ -3,7 +3,7 @@ trait Test {} macro_rules! test { ( $($name:ident)+) => ( - impl<$($name: Test),*> Test for ($($name,)*) { + impl<$($name: Test),+> Test for ($($name,)+) { } ) } |
