2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2019-07-27 00:54:25 +03:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let c: char = 'x';
|
|
|
|
let d: char = 'x';
|
2013-05-18 22:02:45 -04:00
|
|
|
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);
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|