diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-19380.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-19380.rs b/src/test/ui/issues/issue-19380.rs new file mode 100644 index 000000000..5c10e2067 --- /dev/null +++ b/src/test/ui/issues/issue-19380.rs @@ -0,0 +1,18 @@ +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() { } |