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

19 lines
230 B
Rust

trait Qiz {
fn qiz();
}
struct Foo;
impl Qiz for Foo {
fn qiz() {}
}
struct Bar {
foos: &'static [&'static (Qiz + 'static)]
//~^ ERROR E0038
}
const FOO : Foo = Foo;
const BAR : Bar = Bar { foos: &[&FOO]};
fn main() { }