rust/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs
2023-01-11 09:32:08 +00:00

8 lines
101 B
Rust

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