mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			239 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			239 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// 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);
 | 
						|
}
 |