trait T { fn foo(&self); pub(crate) struct Bar(); //~^ ERROR struct is not supported in `trait`s or `impl`s impl T for Bar { //~^ ERROR implementation is not supported in `trait`s or `impl`s fn foo(&self) {} } fn main() {} //~ ERROR this file contains an unclosed delimiter