We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4512721 commit e069524Copy full SHA for e069524
src/test/ui/mir/issue-66930.rs
@@ -0,0 +1,11 @@
1
+// check-pass
2
+// compile-flags: --emit=mir,link
3
+// Regression test for #66930, this ICE requires `--emit=mir` flag.
4
+
5
+static UTF8_CHAR_WIDTH: [u8; 0] = [];
6
7
+pub fn utf8_char_width(b: u8) -> usize {
8
+ UTF8_CHAR_WIDTH[b as usize] as usize
9
+}
10
11
+fn main() {}
0 commit comments