mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
254 B
Rust
12 lines
254 B
Rust
// check-pass
|
|
// compile-flags: --emit=mir,link
|
|
// Regression test for #66930, this ICE requires `--emit=mir` flag.
|
|
|
|
static UTF8_CHAR_WIDTH: [u8; 0] = [];
|
|
|
|
pub fn utf8_char_width(b: u8) -> usize {
|
|
UTF8_CHAR_WIDTH[b as usize] as usize
|
|
}
|
|
|
|
fn main() {}
|