summaryrefslogtreecommitdiffstats
path: root/src/test/ui/char.rs
blob: cfb7a37af01115b6a7965e75fb21cd31c0642772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

pub fn main() {
    let c: char = 'x';
    let d: char = 'x';
    assert_eq!(c, 'x');
    assert_eq!('x', c);
    assert_eq!(c, c);
    assert_eq!(c, d);
    assert_eq!(d, c);
    assert_eq!(d, 'x');
    assert_eq!('x', d);
}