summaryrefslogtreecommitdiffstats
path: root/src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs')
-rw-r--r--src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs b/src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs
new file mode 100644
index 000000000..22f0d912c
--- /dev/null
+++ b/src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs
@@ -0,0 +1,9 @@
+#![feature(rustc_attrs)]
+
+#[rustc_has_incoherent_inherent_impls]
+pub struct StructWithAttr;
+pub struct StructNoAttr;
+
+#[rustc_has_incoherent_inherent_impls]
+pub enum EnumWithAttr {}
+pub enum EnumNoAttr {}