Add new repeat expr test.

Also add repeat expr test folder and move all related tests to it
This commit is contained in:
Oli Scherer 2022-04-12 07:28:07 +00:00
parent 4e6e68e27a
commit bc14b6bea6
7 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,16 @@
// check-pass
#[derive(Clone, Default)]
struct MaybeCopy<T>(T);
impl Copy for MaybeCopy<u8> {}
fn is_copy<T: Copy>(x: T) {
println!("{}", std::any::type_name::<T>());
}
fn main() {
is_copy(MaybeCopy::default());
[MaybeCopy::default(); 13];
// didn't work, because `Copy` was only checked in the mir
}

View File

@ -7,7 +7,7 @@ use std::path::Path;
const ENTRY_LIMIT: usize = 1000;
// FIXME: The following limits should be reduced eventually.
const ROOT_ENTRY_LIMIT: usize = 980;
const ROOT_ENTRY_LIMIT: usize = 977;
const ISSUES_ENTRY_LIMIT: usize = 2278;
fn check_entries(path: &Path, bad: &mut bool) {