about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-06-18 15:20:41 -0700
committerGitHub <noreply@github.com>2020-06-18 15:20:41 -0700
commit9262fc2a68133330a8f78c73afa54b3ff09724b5 (patch)
treee4c9f00006b7883d276aace4c0a92dbed7f0b67c /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
parent49ab0cab618d9d1cb49220d7c253556a56148283 (diff)
parent3313bf62ac45fab2c39e49c788423153754087a9 (diff)
downloadrust-9262fc2a68133330a8f78c73afa54b3ff09724b5.tar.gz
rust-9262fc2a68133330a8f78c73afa54b3ff09724b5.zip
Rollup merge of #72628 - MikailBag:array-default-tests, r=shepmaster
Add tests for 'impl Default for [T; N]'

Related: #71690.
This pull request adds two tests:
- Even it T::default() panics, no leaks occur.
- [T; 0] is Default even if T is not.

I believe at some moment `Default` impl for arrays will be rewritten to use const generics instead of macros, and these tests will help to prevent behavior changes.
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions