remove several redundant tests

This commit is contained in:
cyrgani
2026-03-15 20:21:47 +00:00
parent 9e973d8850
commit 6dcb85d55d
5 changed files with 0 additions and 75 deletions
-12
View File
@@ -1,12 +0,0 @@
//@ run-pass
#![allow(dead_code)]
struct X { x: isize }
pub fn main() {
let _x = match 0 {
_ => X {
x: 0
}
};
}
-10
View File
@@ -1,10 +0,0 @@
//@ check-pass
#![allow(dead_code)]
pub struct Scheduler {
/// The event loop used to drive the scheduler and perform I/O
event_loop: Box<isize>
}
pub fn main() { }
-38
View File
@@ -1,38 +0,0 @@
//@ run-pass
#![allow(dead_code)]
pub trait EventLoop {
fn dummy(&self) { }
}
pub struct UvEventLoop {
uvio: isize
}
impl UvEventLoop {
pub fn new() -> UvEventLoop {
UvEventLoop {
uvio: 0
}
}
}
impl EventLoop for UvEventLoop {
}
pub struct Scheduler {
event_loop: Box<dyn EventLoop+'static>,
}
impl Scheduler {
pub fn new(event_loop: Box<dyn EventLoop+'static>) -> Scheduler {
Scheduler {
event_loop: event_loop,
}
}
}
pub fn main() {
let _sched = Scheduler::new(Box::new(UvEventLoop::new()) as Box<dyn EventLoop>);
}
-7
View File
@@ -1,7 +0,0 @@
//@ run-fail
//@ error-pattern:internal error: entered unreachable code
//@ needs-subprocess
fn main() {
unreachable!()
}
-8
View File
@@ -1,8 +0,0 @@
//! regression test for issue https://github.com/rust-lang/rust/issues/16783
//@ run-pass
#![allow(unused_variables)]
pub fn main() {
let x = [1, 2, 3];
let y = x;
}