mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
19 lines
234 B
Rust
19 lines
234 B
Rust
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]};
|
|
|
|
fn main() { }
|