rust/src/test/run-pass/char.rs
2011-07-27 15:54:33 +02:00

13 lines
216 B
Rust

fn main() {
let c: char = 'x';
let d: char = 'x';
assert (c == 'x');
assert ('x' == c);
assert (c == c);
assert (c == d);
assert (d == c);
assert (d == 'x');
assert ('x' == d);
}