]> git.lizzy.rs Git - rust.git/blob - tests/ui/char.rs
Auto merge of #106825 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / ui / char.rs
1 // run-pass
2
3 pub fn main() {
4     let c: char = 'x';
5     let d: char = 'x';
6     assert_eq!(c, 'x');
7     assert_eq!('x', c);
8     assert_eq!(c, c);
9     assert_eq!(c, d);
10     assert_eq!(d, c);
11     assert_eq!(d, 'x');
12     assert_eq!('x', d);
13 }