aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3541-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/issue-3541-1.rs')
-rw-r--r--gcc/testsuite/rust/compile/issue-3541-1.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-3541-1.rs b/gcc/testsuite/rust/compile/issue-3541-1.rs
new file mode 100644
index 0000000..6b47b7e
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-3541-1.rs
@@ -0,0 +1,5 @@
+impl B for u32 {
+ const BAR: i32; // { dg-error "associated constant in .impl." }
+}
+
+trait B {}