mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ run-pass
 | 
						|
#![allow(dead_code)]
 | 
						|
//@ pretty-expanded FIXME #23616
 | 
						|
 | 
						|
struct Foo {
 | 
						|
    x: isize,
 | 
						|
}
 | 
						|
 | 
						|
impl Foo {
 | 
						|
    pub fn f(&self) {}
 | 
						|
}
 | 
						|
 | 
						|
fn g(x: &mut Foo) {
 | 
						|
    x.f();
 | 
						|
}
 | 
						|
 | 
						|
pub fn main() {
 | 
						|
}
 |