summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs')
-rw-r--r--src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs b/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
new file mode 100644
index 000000000..6b71ffc97
--- /dev/null
+++ b/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
@@ -0,0 +1,11 @@
+#![feature(staged_api)]
+#![feature(inherent_associated_types)]
+#![stable(feature = "main", since = "1.0.0")]
+
+#[stable(feature = "main", since = "1.0.0")]
+pub struct Owner;
+
+impl Owner {
+ #[unstable(feature = "data", issue = "none")]
+ pub type Data = ();
+}