summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-13763.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-13763.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-13763.rs b/src/test/ui/issues/issue-13763.rs
new file mode 100644
index 000000000..dd5f6dbc9
--- /dev/null
+++ b/src/test/ui/issues/issue-13763.rs
@@ -0,0 +1,15 @@
+// run-pass
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+mod u8 {
+ pub const BITS: usize = 8;
+}
+
+const NUM: usize = u8::BITS;
+
+struct MyStruct { nums: [usize; 8] }
+
+fn main() {
+ let _s = MyStruct { nums: [0; NUM] };
+}