mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
remove several redundant tests
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
//@ run-pass
|
||||
#![allow(dead_code)]
|
||||
|
||||
struct X { x: isize }
|
||||
|
||||
pub fn main() {
|
||||
let _x = match 0 {
|
||||
_ => X {
|
||||
x: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -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() { }
|
||||
@@ -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>);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
//@ run-fail
|
||||
//@ error-pattern:internal error: entered unreachable code
|
||||
//@ needs-subprocess
|
||||
|
||||
fn main() {
|
||||
unreachable!()
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user