pub(crate) struct Bar { foo: T, trait T { //~ ERROR expected identifier, found keyword `trait` fn foo(&self); } impl T for Bar { fn foo(&self) {} } fn main() {} //~ ERROR this file contains an unclosed delimiter