rust/src/test/ui/issues/issue-27078.rs
2018-12-25 21:08:33 -07:00

12 lines
189 B
Rust

#![feature(associated_consts)]
trait Foo {
const BAR: i32;
fn foo(self) -> &'static i32 {
//~^ ERROR the size for values of type
&<Self>::BAR
}
}
fn main() {}