mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.
		
			
				
	
	
		
			15 lines
		
	
	
		
			335 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			335 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: expected type, found constant
 | 
						|
  --> $DIR/shadowed-const.rs:19:20
 | 
						|
   |
 | 
						|
LL |   const QUX: Self::BAR;
 | 
						|
   |                    ^^^ unexpected constant
 | 
						|
   |
 | 
						|
note: the associated constant is defined here
 | 
						|
  --> $DIR/shadowed-const.rs:18:3
 | 
						|
   |
 | 
						|
LL |   const BAR: usize;
 | 
						|
   |   ^^^^^^^^^^^^^^^^
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |