]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-5099.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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() {}