mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 49969468b5
			
		
	
	
		49969468b5
		
	
	
	
	
		
			
			These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
		
			
				
	
	
		
			12 lines
		
	
	
		
			263 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			263 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for #85794
 | |
| //@ edition: 2015
 | |
| 
 | |
| struct Baz {
 | |
|     inner : dyn fn ()
 | |
|     //~^ ERROR expected `,`, or `}`, found keyword `fn`
 | |
|     //~| ERROR expected identifier, found keyword `fn`
 | |
|     //~| ERROR cannot find type `dyn` in this scope
 | |
| }
 | |
| 
 | |
| fn main() {}
 |