rust/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs

8 lines
101 B
Rust
Raw Normal View History

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