Add new repeat expr test.
Also add repeat expr test folder and move all related tests to it
This commit is contained in:
parent
4e6e68e27a
commit
bc14b6bea6
16
src/test/ui/repeat-expr/infer.rs
Normal file
16
src/test/ui/repeat-expr/infer.rs
Normal 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
|
||||
}
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user