summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs')
-rw-r--r--src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs b/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs
new file mode 100644
index 000000000..71f65b92e
--- /dev/null
+++ b/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs
@@ -0,0 +1,10 @@
+#![feature(inherent_associated_types)]
+#![allow(incomplete_features)]
+
+struct Foo;
+
+impl Foo {
+ type Baz; //~ ERROR associated type in `impl` without body
+}
+
+fn main() {}