rust/src/test/ui/issues/issue-5099.rs
2020-08-13 17:04:33 -07:00

11 lines
211 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 main() {}