mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			221 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #[derive(Copy, Clone)]
 | |
| struct Wrapper<T>(T);
 | |
| 
 | |
| fn foo(_: fn(i32), _: Wrapper<i32>) {}
 | |
| 
 | |
| fn f(_: u32) {}
 | |
| 
 | |
| fn main() {
 | |
|     let w = Wrapper::<isize>(1isize);
 | |
|     foo(f, w); //~ ERROR arguments to this function are incorrect
 | |
| }
 | 
