about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/char.rs
blob: 5524f0ae7abea09409c637f924c81bc1e1c1e4b5 (plain)
1
2
3
4
5
6
7
fn main() {
    let c = 'x';
    assert_eq!(c, 'x');
    assert!('a' < 'z');
    assert!('1' < '9');
    assert_eq!(std::char::from_u32('x' as u32), Some('x'));
}