Move some tests to more suitable subdirs
This commit is contained in:
parent
45b3c28518
commit
eb9abea295
35 changed files with 1 additions and 46 deletions
|
@ -1,14 +0,0 @@
|
||||||
// run-pass
|
|
||||||
// pretty-expanded FIXME #23616
|
|
||||||
|
|
||||||
#![feature(box_syntax)]
|
|
||||||
|
|
||||||
|
|
||||||
fn a_val(x: Box<isize>, y: Box<isize>) -> isize {
|
|
||||||
*x + *y
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn main() {
|
|
||||||
let z: Box<_> = box 22;
|
|
||||||
a_val(z.clone(), z.clone());
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
// run-pass
|
|
||||||
#![allow(dead_code)]
|
|
||||||
#![allow(non_camel_case_types)]
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
|
||||||
struct cat {
|
|
||||||
meow: extern "Rust" fn(),
|
|
||||||
}
|
|
||||||
|
|
||||||
fn meow() {
|
|
||||||
println!("meow")
|
|
||||||
}
|
|
||||||
|
|
||||||
fn cat() -> cat {
|
|
||||||
cat {
|
|
||||||
meow: meow,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
|
||||||
struct KittyInfo {kitty: cat}
|
|
||||||
|
|
||||||
// Code compiles and runs successfully if we add a + before the first arg
|
|
||||||
fn nyan(kitty: cat, _kitty_info: KittyInfo) {
|
|
||||||
(kitty.meow)();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn main() {
|
|
||||||
let kitty = cat();
|
|
||||||
nyan(kitty, KittyInfo {kitty: kitty});
|
|
||||||
}
|
|
|
@ -8,7 +8,7 @@ use std::path::Path;
|
||||||
const ENTRY_LIMIT: usize = 1000;
|
const ENTRY_LIMIT: usize = 1000;
|
||||||
// FIXME: The following limits should be reduced eventually.
|
// FIXME: The following limits should be reduced eventually.
|
||||||
const ROOT_ENTRY_LIMIT: usize = 1418;
|
const ROOT_ENTRY_LIMIT: usize = 1418;
|
||||||
const ISSUES_ENTRY_LIMIT: usize = 2582;
|
const ISSUES_ENTRY_LIMIT: usize = 2565;
|
||||||
|
|
||||||
fn check_entries(path: &Path, bad: &mut bool) {
|
fn check_entries(path: &Path, bad: &mut bool) {
|
||||||
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
|
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue