rust/tests/ui/issues/issue-19380.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
268 B
Rust
Raw Normal View History

trait Qiz {
fn qiz();
}
struct Foo;
impl Qiz for Foo {
fn qiz() {}
}
struct Bar {
2019-05-28 18:46:13 +00:00
foos: &'static [&'static (dyn Qiz + 'static)]
//~^ ERROR E0038
}
const FOO : Foo = Foo;
const BAR : Bar = Bar { foos: &[&FOO]};
//~^ ERROR E0038
//~| ERROR E0038
fn main() { }