Skip to content

Commit

Permalink
Add issue-80772
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jan 15, 2021
1 parent c3fe097 commit ae18bb1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ices/80772.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
trait SomeTrait {}

struct Exhibit {
constant: usize,
factory: fn(&usize) -> Box<dyn SomeTrait>,
}

const A_CONSTANT: &[Exhibit] = &[
Exhibit {
constant: 1,
factory: |_| unimplemented!(),
},
Exhibit {
constant: "Hello world".len(),
factory: |_| unimplemented!(),
},
];

fn main() {}

0 comments on commit ae18bb1

Please sign in to comment.