2020-08-13 17:04:33 -07:00
|
|
|
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
|
|
|
|
}
|
2020-10-17 13:36:59 +02:00
|
|
|
fn c() {
|
|
|
|
let _ = || this.a; //~ ERROR cannot find value `this` in this scope
|
|
|
|
}
|
2020-08-13 17:04:33 -07:00
|
|
|
}
|
2013-03-21 15:00:29 -07:00
|
|
|
|
|
|
|
fn main() {}
|