rust/tests/ui/traits/issue-117794.rs

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

11 lines
185 B
Rust
Raw Normal View History

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() {}