about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-49934-errors.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-19 01:54:19 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-19 19:25:20 +0300
commitcd2177f3de22f54d7e71eea1e270f4e424394fc7 (patch)
treefc14fa30678990db7f8974853af94ae72717c188 /src/test/ui/issues/issue-49934-errors.rs
parentec547202b4fa11cd351b29d076391d2913364fc6 (diff)
downloadrust-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.rs2
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
         _ => (),
     }
 }