summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/alias/impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/alias/impl.rs')
-rw-r--r--tests/ui/traits/alias/impl.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/traits/alias/impl.rs b/tests/ui/traits/alias/impl.rs
new file mode 100644
index 000000000..6e35793a0
--- /dev/null
+++ b/tests/ui/traits/alias/impl.rs
@@ -0,0 +1,7 @@
+#![feature(trait_alias)]
+
+trait DefaultAlias = Default;
+
+impl DefaultAlias for () {} //~ ERROR expected trait, found trait alias
+
+fn main() {}