]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6318.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-6318.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![feature(box_syntax)]
5
6 pub enum Thing {
7     A(Box<dyn Foo+'static>)
8 }
9
10 pub trait Foo {
11     fn dummy(&self) { }
12 }
13
14 pub struct Struct;
15
16 impl Foo for Struct {}
17
18 pub fn main() {
19     match Thing::A(box Struct as Box<dyn Foo + 'static>) {
20         Thing::A(_a) => 0,
21     };
22 }