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