mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			306 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			306 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait B <A> {
 | 
						|
    fn a() -> A {
 | 
						|
        this.a //~ ERROR cannot find value `this` in this scope
 | 
						|
    }
 | 
						|
    fn b(x: i32) {
 | 
						|
        this.b(x); //~ ERROR cannot find value `this` in this scope
 | 
						|
    }
 | 
						|
    fn c() {
 | 
						|
        let _ = || this.a; //~ ERROR cannot find value `this` in this scope
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |