summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-13763.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-13763.rs')
-rw-r--r--tests/ui/issues/issue-13763.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-13763.rs b/tests/ui/issues/issue-13763.rs
new file mode 100644
index 000000000..dd5f6dbc9
--- /dev/null
+++ b/tests/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] };
+}