diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-80772.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-80772.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/borrowck/issue-80772.rs b/src/test/ui/borrowck/issue-80772.rs deleted file mode 100644 index 1b8caa3f8..000000000 --- a/src/test/ui/borrowck/issue-80772.rs +++ /dev/null @@ -1,21 +0,0 @@ -// check-pass - -trait SomeTrait {} - -pub struct Exhibit { - constant: usize, - factory: fn(&usize) -> Box<dyn SomeTrait>, -} - -pub const A_CONSTANT: &[Exhibit] = &[ - Exhibit { - constant: 1, - factory: |_| unimplemented!(), - }, - Exhibit { - constant: "Hello world".len(), - factory: |_| unimplemented!(), - }, -]; - -fn main() {} |