mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			237 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			237 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // When a MULTI/NO-character string literal is used where a char should be,
 | |
| // DO NOT suggest changing to single quotes.
 | |
| 
 | |
| fn main() {
 | |
|     let _: char = "foo"; //~ ERROR mismatched types
 | |
|     let _: char = ""; //~ ERROR mismatched types
 | |
| }
 | 
