rust/tests/ui/resolve/issue-5099.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
306 B
Rust
Raw Normal View History

2020-08-14 00:04:33 +00: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
}
fn c() {
let _ = || this.a; //~ ERROR cannot find value `this` in this scope
}
2020-08-14 00:04:33 +00:00
}
fn main() {}