blob: d4cb2817d663b3b86aab8eb3ee9051f66e088e10 [file] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/19380>.
trait Qiz {
fn qiz();
}
struct Foo;
impl Qiz for Foo {
fn qiz() {}
}
struct Bar {
foos: &'static [&'static (dyn Qiz + 'static)]
//~^ ERROR E0038
}
const FOO : Foo = Foo;
const BAR : Bar = Bar { foos: &[&FOO]};
//~^ ERROR E0038
fn main() { }