1 2 3 4 5 6 7 8 9 10 11
#![feature(associated_consts)] trait Foo { const BAR: i32; fn foo(self) -> &'static i32 { //~^ ERROR the size for values of type &<Self>::BAR } } fn main() {}