rust/src/test/run-pass/char.rs

13 lines
201 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
fn main() {
let char c = 'x';
let char d = 'x';
check(c == 'x');
check('x' == c);
check(c == c);
check(c == d);
check(d == c);
check (d == 'x');
check('x' == d);
}