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

14 lines
217 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
fn main() {
2011-07-27 07:19:39 -05:00
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);
}