summaryrefslogtreecommitdiffstats
path: root/tests/rust/associated_constant_panic.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rust/associated_constant_panic.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rust/associated_constant_panic.rs b/tests/rust/associated_constant_panic.rs
new file mode 100644
index 0000000..ff0c8ec
--- /dev/null
+++ b/tests/rust/associated_constant_panic.rs
@@ -0,0 +1,7 @@
+pub trait F {
+ const B: u8;
+}
+
+impl F for u16 {
+ const B: u8 = 3;
+}