aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/char.rs
blob: 123f2eb26c42ea017a405d1ed2627a5be7c3fabc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}