mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-28 11:38:01 +00:00 
			
		
		
		
	 95ff642797
			
		
	
	
		95ff642797
		
	
	
	
	
		
			
			Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
		
			
				
	
	
		
			14 lines
		
	
	
		
			305 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			305 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| // Test view items inside non-file-level mods
 | |
| 
 | |
| // This is a regression test for an issue where we were failing to
 | |
| // pretty-print such view items. If that happens again, this should
 | |
| // begin failing.
 | |
| 
 | |
| 
 | |
| mod m {
 | |
|     pub fn f() -> Vec<isize> { Vec::new() }
 | |
| }
 | |
| 
 | |
| pub fn main() { let _x = m::f(); }
 |