mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			498 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			498 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(negative_impls)]
 | |
| #![feature(auto_traits)]
 | |
| 
 | |
| pub auto trait AnAutoTrait {}
 | |
| 
 | |
| pub struct Foo<T: Clone + Sync> { field: T }
 | |
| 
 | |
| //@ has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
 | |
| //     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
 | |
| //@ has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
 | |
| //     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
 | |
| impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}
 | 
