summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-117794.rs
blob: a66d6eb10edeef06d8048a6653c63b128597a5ea (plain)
1
2
3
4
5
6
7
8
9
10
trait Foo {}

trait T {
    fn a(&self) -> impl Foo {
        self.b(|| 0)
        //~^ ERROR no method named `b` found for reference `&Self` in the current scope
    }
}

fn main() {}