1 struct Foo {} 2 3 impl Foo { 4 pub fn bar() 5 //~^ ERROR: expected `;`, found `}` 6 //~| ERROR: associated function in `impl` without body 7 } 8 main()9 fn main() {} 10