]> git.proxmox.com Git - rustc.git/blob - src/test/ui/char.rs
New upstream version 1.66.0+dfsg1
[rustc.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 }