rust/tests/compile-fail/option_eq.rs
2016-06-21 09:35:20 +02:00

6 lines
162 B
Rust

//error-pattern: can't handle cast: tmp0 as isize (Misc)
// no-ignore-x86 ignore-x86_64
fn main() {
assert_eq!(std::char::from_u32('x' as u32), Some('x'));
}