mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
11 lines
185 B
Rust
11 lines
185 B
Rust
|
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() {}
|