]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-5099.rs
Rollup merge of #101635 - jyn514:queries-new-derived, r=cjgillot
[rust.git] / src / test / ui / resolve / issue-5099.rs
1 trait B <A> {
2     fn a() -> A {
3         this.a //~ ERROR cannot find value `this` in this scope
4     }
5     fn b(x: i32) {
6         this.b(x); //~ ERROR cannot find value `this` in this scope
7     }
8     fn c() {
9         let _ = || this.a; //~ ERROR cannot find value `this` in this scope
10     }
11 }
12
13 fn main() {}