1
Fork 0
rust/tests/ui/error-codes/E0186.rs
2025-04-08 23:06:31 +03:00

13 lines
185 B
Rust

trait Foo {
fn foo(&self); //~ NOTE `&self` used in trait
}
struct Bar;
impl Foo for Bar {
fn foo() {} //~ ERROR E0186
//~^ NOTE expected `&self` in impl
}
fn main() {
}