diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-19 01:54:19 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-19 19:25:20 +0300 |
| commit | cd2177f3de22f54d7e71eea1e270f4e424394fc7 (patch) | |
| tree | fc14fa30678990db7f8974853af94ae72717c188 /src/test/ui/issues/issue-49934-errors.rs | |
| parent | ec547202b4fa11cd351b29d076391d2913364fc6 (diff) | |
| download | rust-cd2177f3de22f54d7e71eea1e270f4e424394fc7.tar.gz rust-cd2177f3de22f54d7e71eea1e270f4e424394fc7.zip | |
expand: Stop derive expansion un unexpected targets early
Collect derive placeholders using `collect` instead of `push`
Diffstat (limited to 'src/test/ui/issues/issue-49934-errors.rs')
| -rw-r--r-- | src/test/ui/issues/issue-49934-errors.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-49934-errors.rs b/src/test/ui/issues/issue-49934-errors.rs index 6fa5f01ffd9..bf95f8fa7e1 100644 --- a/src/test/ui/issues/issue-49934-errors.rs +++ b/src/test/ui/issues/issue-49934-errors.rs @@ -1,10 +1,8 @@ fn foo<#[derive(Debug)] T>() { //~^ ERROR `derive` may only be applied to structs, enums and unions -//~| ERROR expected an inert attribute, found a derive macro match 0 { #[derive(Debug)] //~^ ERROR `derive` may only be applied to structs, enums and unions - //~| ERROR expected an inert attribute, found a derive macro _ => (), } } |
