mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait MyIterator : Iterator {}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let _ = MyIterator::next;
 | 
						|
}
 | 
						|
//~^^ ERROR the value of the associated type `Item` in `Iterator` must be specified [E0191]
 | 
						|
//~| WARN trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
 | 
						|
//~| WARN this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
 |