mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			463 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			463 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// There should be E0034 "multiple applicable items in scope" if we opt-in for
 | 
						|
// the feature.
 | 
						|
 | 
						|
// aux-build:inference_unstable_iterator.rs
 | 
						|
// aux-build:inference_unstable_itertools.rs
 | 
						|
 | 
						|
#![feature(ipu_flatten)]
 | 
						|
 | 
						|
extern crate inference_unstable_iterator;
 | 
						|
extern crate inference_unstable_itertools;
 | 
						|
 | 
						|
use inference_unstable_iterator::IpuIterator;
 | 
						|
use inference_unstable_itertools::IpuItertools;
 | 
						|
 | 
						|
fn main() {
 | 
						|
    assert_eq!('x'.ipu_flatten(), 0);   //~ ERROR E0034
 | 
						|
}
 |