mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	When constant evaluation fails because its MIR is tainted by errors, suppress note indicating that erroneous constant was used, since those errors have to be fixed regardless of the constant being used or not.
		
			
				
	
	
		
			12 lines
		
	
	
		
			274 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			274 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error[E0369]: cannot add `{integer}` to `&str`
 | 
						|
  --> $DIR/issue-41394.rs:2:12
 | 
						|
   |
 | 
						|
LL |     A = "" + 1
 | 
						|
   |         -- ^ - {integer}
 | 
						|
   |         |
 | 
						|
   |         &str
 | 
						|
 | 
						|
error: aborting due to previous error
 | 
						|
 | 
						|
For more information about this error, try `rustc --explain E0369`.
 |