summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-56488.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/issue-56488.rs')
-rw-r--r--tests/ui/traits/issue-56488.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-56488.rs b/tests/ui/traits/issue-56488.rs
new file mode 100644
index 000000000..e2f399692
--- /dev/null
+++ b/tests/ui/traits/issue-56488.rs
@@ -0,0 +1,13 @@
+// run-pass
+
+#![feature(trait_alias)]
+
+mod alpha {
+ pub trait A {}
+ pub trait C = A;
+}
+
+#[allow(unused_imports)]
+use alpha::C;
+
+fn main() {}