rust/tests/compile-fail/option_eq.rs

6 lines
162 B
Rust
Raw Normal View History

2016-06-20 05:29:45 -05:00
//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'));
}