error: non-item in item list --> $DIR/issue-105226.rs:7:56 | LL | impl S { | - item list starts here LL | fn hello
(&self, val: &P) where P: fmt::Display; { | - ^ non-item starts here | | | help: consider removing this semicolon ... LL | } | - item list ends here error: associated function in `impl` without body --> $DIR/issue-105226.rs:7:5 | LL | fn hello
(&self, val: &P) where P: fmt::Display; { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: provide a definition for the function: `{
}` error: associated function in `impl` without body --> $DIR/issue-105226.rs:15:5 | LL | fn hello_empty(&self, val: &P) where P: fmt::Display; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | help: provide a definition for the function: `{
}` error: aborting due to 3 previous errors