about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-06-29 21:21:21 +0530
committerGitHub <noreply@github.com>2016-06-29 21:21:21 +0530
commit470c5191f553eb86a3a849e88d642dbd09a32e25 (patch)
tree6ca676f213157c9e8c017bc641a130c9e762d161 /src/test
parentf74d0fb568936b75120094b25a5638c1fc49c51e (diff)
parenta595ffaac5045eb8950785f050f9e0b76cc4f3eb (diff)
Rollup merge of #34446 - jseyfried:refactor_decorators, r=nrc
Treat `MultiDecorator`s as a special case of `MultiModifier`s

This deals with #32950 by using @durka's [option 1](https://github.com/rust-lang/rust/pull/33769#issuecomment-221774136).
r? @nrc
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-32950.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/compile-fail/issue-32950.rs b/src/test/compile-fail/issue-32950.rs
index e47ebdd6a69..e8ca1c1fa98 100644
--- a/src/test/compile-fail/issue-32950.rs
+++ b/src/test/compile-fail/issue-32950.rs
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(type_macros, concat_idents, rustc_attrs)]
-#![allow(unused)]
+#![feature(type_macros, concat_idents)]
 
-#[derive(Debug)] struct FooBar;
-#[derive(Debug)] struct Baz<T>(T, concat_idents!(Foo, Bar));
+#[derive(Debug)] //~ NOTE in this expansion
+struct Baz<T>(
+    concat_idents!(Foo, Bar) //~ ERROR `derive` cannot be used on items with type macros
+);
 
-#[rustc_error]
-fn main() {} //~ ERROR compilation successful
+fn main() {}