1 error: non-item in item list
2 --> $DIR/issue-105226.rs:7:56
5 | - item list starts here
6 LL | fn hello<P>(&self, val: &P) where P: fmt::Display; {
7 | - ^ non-item starts here
9 | help: consider removing this semicolon
12 | - item list ends here
14 error: associated function in `impl` without body
15 --> $DIR/issue-105226.rs:7:5
17 LL | fn hello<P>(&self, val: &P) where P: fmt::Display; {
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
20 | help: provide a definition for the function: `{ <body> }`
22 error: associated function in `impl` without body
23 --> $DIR/issue-105226.rs:15:5
25 LL | fn hello_empty<P>(&self, val: &P) where P: fmt::Display;
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
28 | help: provide a definition for the function: `{ <body> }`
30 error: aborting due to 3 previous errors