mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			285 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			285 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for #121607 and for part of issue #119924.
 | |
| //@ check-pass
 | |
| 
 | |
| trait Trait {
 | |
|     fn provided() {
 | |
|         pub struct Type;
 | |
| 
 | |
|         impl Type {
 | |
|             // This visibility qualifier used to get rejected.
 | |
|             pub fn perform() {}
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
