Skip to content

Commit ae18bb1

Browse files
committed
Add issue-80772
rust-lang/rust#80772
1 parent c3fe097 commit ae18bb1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ices/80772.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
trait SomeTrait {}
2+
3+
struct Exhibit {
4+
constant: usize,
5+
factory: fn(&usize) -> Box<dyn SomeTrait>,
6+
}
7+
8+
const A_CONSTANT: &[Exhibit] = &[
9+
Exhibit {
10+
constant: 1,
11+
factory: |_| unimplemented!(),
12+
},
13+
Exhibit {
14+
constant: "Hello world".len(),
15+
factory: |_| unimplemented!(),
16+
},
17+
];
18+
19+
fn main() {}

0 commit comments

Comments
 (0)