PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jruderman/rust
Rust | 13 lines | 11 code | 2 blank | 0 comment | 7 complexity | 0e920812385350449f1399dfaf18e586 MD5 | raw file
 1
 2
 3fn main() {
 4    let c: char = 'x';
 5    let d: char = 'x';
 6    assert (c == 'x');
 7    assert ('x' == c);
 8    assert (c == c);
 9    assert (c == d);
10    assert (d == c);
11    assert (d == 'x');
12    assert ('x' == d);
13}