summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-19380.rs
blob: fce737cba18d288de988d3de5a703ca0a9aa4fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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() { }