mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			200 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			200 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags: -Cmetadata=aux
 | |
| 
 | |
| pub trait Trait {
 | |
| }
 | |
| 
 | |
| pub struct Struct<F>
 | |
| {
 | |
|     _p: ::std::marker::PhantomData<F>,
 | |
| }
 | |
| 
 | |
| impl<F: Fn() -> u32>
 | |
| Trait for Struct<F>
 | |
|     where
 | |
|         F: Fn() -> u32,
 | |
| {
 | |
| }
 | 
