trait Foo { const BAR: i32; fn foo(self) -> &'static i32 { //~^ ERROR the size for values of type &::BAR } } fn main() {}