]> git.lizzy.rs Git - rust.git/blob - src/test/ui/char.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / 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 }