Move test files

This commit is contained in:
Caio 2023-04-20 15:06:17 -03:00
parent 39c6804b92
commit 4adc5f9281
26 changed files with 1 additions and 99 deletions

View File

@ -10,7 +10,7 @@ use std::path::{Path, PathBuf};
// FIXME: The following limits should be reduced eventually.
const ENTRY_LIMIT: usize = 885;
const ROOT_ENTRY_LIMIT: usize = 894;
const ISSUES_ENTRY_LIMIT: usize = 1977;
const ISSUES_ENTRY_LIMIT: usize = 1953;
fn check_entries(tests_path: &Path, bad: &mut bool) {
let mut directories: HashMap<PathBuf, usize> = HashMap::new();

View File

@ -1,8 +0,0 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes
fn foo<T>(t: T) {}
fn main() {
foo(panic!())
}

View File

@ -1,5 +0,0 @@
fn main() {
// Unconstrained type:
format!("{:?}", None);
//~^ ERROR type annotations needed [E0282]
}

View File

@ -1,14 +0,0 @@
error[E0282]: type annotations needed
--> $DIR/issue-6458-2.rs:3:21
|
LL | format!("{:?}", None);
| ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
|
help: consider specifying the generic argument
|
LL | format!("{:?}", None::<T>);
| +++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.

View File

@ -1,6 +0,0 @@
use std::mem;
fn main() {
mem::transmute(0);
//~^ ERROR type annotations needed [E0282]
}

View File

@ -1,14 +0,0 @@
error[E0282]: type annotations needed
--> $DIR/issue-6458-3.rs:4:5
|
LL | mem::transmute(0);
| ^^^^^^^^^^^^^^ cannot infer type of the type parameter `Dst` declared on the function `transmute`
|
help: consider specifying the generic arguments
|
LL | mem::transmute::<i32, Dst>(0);
| ++++++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.

View File

@ -1,7 +0,0 @@
fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
Err("bar".to_string());
}
fn main() {
foo(false);
}

View File

@ -1,16 +0,0 @@
error[E0308]: mismatched types
--> $DIR/issue-6458-4.rs:1:20
|
LL | fn foo(b: bool) -> Result<bool,String> {
| --- ^^^^^^^^^^^^^^^^^^^ expected `Result<bool, String>`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
LL | Err("bar".to_string());
| - help: remove this semicolon to return this value
|
= note: expected enum `Result<bool, String>`
found unit type `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.

View File

@ -1,14 +0,0 @@
use std::marker;
pub struct TypeWithState<State>(marker::PhantomData<State>);
pub struct MyState;
pub fn foo<State>(_: TypeWithState<State>) {}
pub fn bar() {
foo(TypeWithState(marker::PhantomData));
//~^ ERROR type annotations needed [E0282]
}
fn main() {
}

View File

@ -1,14 +0,0 @@
error[E0282]: type annotations needed
--> $DIR/issue-6458.rs:9:22
|
LL | foo(TypeWithState(marker::PhantomData));
| ^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
|
help: consider specifying the generic argument
|
LL | foo(TypeWithState(marker::PhantomData::<T>));
| +++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.