Skip to content

Commit bc14b6b

Browse files
committed
Add new repeat expr test.
Also add repeat expr test folder and move all related tests to it
1 parent 4e6e68e commit bc14b6b

File tree

7 files changed

+17
-1
lines changed

7 files changed

+17
-1
lines changed

src/test/ui/repeat-expr/infer.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// check-pass
2+
3+
#[derive(Clone, Default)]
4+
struct MaybeCopy<T>(T);
5+
6+
impl Copy for MaybeCopy<u8> {}
7+
8+
fn is_copy<T: Copy>(x: T) {
9+
println!("{}", std::any::type_name::<T>());
10+
}
11+
12+
fn main() {
13+
is_copy(MaybeCopy::default());
14+
[MaybeCopy::default(); 13];
15+
// didn't work, because `Copy` was only checked in the mir
16+
}
File renamed without changes.

src/tools/tidy/src/ui_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::Path;
77

88
const ENTRY_LIMIT: usize = 1000;
99
// FIXME: The following limits should be reduced eventually.
10-
const ROOT_ENTRY_LIMIT: usize = 980;
10+
const ROOT_ENTRY_LIMIT: usize = 977;
1111
const ISSUES_ENTRY_LIMIT: usize = 2278;
1212

1313
fn check_entries(path: &Path, bad: &mut bool) {

0 commit comments

Comments
 (0)