summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-44247.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-44247.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-44247.rs b/src/test/ui/issues/issue-44247.rs
new file mode 100644
index 000000000..3544880fa
--- /dev/null
+++ b/src/test/ui/issues/issue-44247.rs
@@ -0,0 +1,19 @@
+// check-pass
+#![allow(dead_code)]
+trait T {
+ type X;
+ const X: Self::X;
+}
+fn foo<X: T>() {
+ let _: X::X = X::X;
+}
+
+trait S {
+ const X: Self::X;
+ type X;
+}
+fn bar<X: S>() {
+ let _: X::X = X::X;
+}
+
+fn main() {}