rust/tests/ui/parser/impl-item-fn-no-body-semant...

8 lines
101 B
Rust

fn main() {}
struct X;
impl X {
fn f(); //~ ERROR associated function in `impl` without body
}