mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			384 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			384 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
warning: methods `get_from_ref` and `inc` are never used
 | 
						|
  --> $DIR/overloaded-index-in-field.rs:30:8
 | 
						|
   |
 | 
						|
LL | trait Int {
 | 
						|
   |       --- methods in this trait
 | 
						|
LL |     fn get(self) -> isize;
 | 
						|
LL |     fn get_from_ref(&self) -> isize;
 | 
						|
   |        ^^^^^^^^^^^^
 | 
						|
LL |     fn inc(&mut self);
 | 
						|
   |        ^^^
 | 
						|
   |
 | 
						|
   = note: `#[warn(dead_code)]` on by default
 | 
						|
 | 
						|
warning: 1 warning emitted
 | 
						|
 |