Skip to content

Commit 9802e15

Browse files
committed
Remove windows-specific copy of test
1 parent 7a52206 commit 9802e15

3 files changed

+5
-83
lines changed

tests/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr

-19
This file was deleted.

tests/ui/coercion/coerce-issue-49593-box-never-windows.rs

-58
This file was deleted.

tests/ui/coercion/coerce-issue-49593-box-never.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ revisions: nofallback fallback
2-
//@ ignore-windows - the number of `Error` impls is platform-dependent
32
//@check-fail
43

54
#![feature(never_type)]
@@ -21,13 +20,14 @@ fn foo(x: !) -> Box<dyn Error> {
2120
}
2221

2322
fn foo_raw_ptr(x: !) -> *mut dyn Error {
24-
/* *mut $0 is coerced to *mut Error here */ raw_ptr_box::<_ /* ! */>(x)
23+
/* *mut $0 is coerced to *mut Error here */
24+
raw_ptr_box::<_ /* ! */>(x)
2525
//[nofallback]~^ ERROR trait bound `(): std::error::Error` is not satisfied
2626
}
2727

2828
fn no_coercion(d: *mut dyn Error) -> *mut dyn Error {
2929
/* an unsize coercion won't compile here, and it is indeed not used
30-
because there is nothing requiring the _ to be Sized */
30+
because there is nothing requiring the _ to be Sized */
3131
d as *mut _
3232
}
3333

@@ -50,10 +50,9 @@ fn foo_no_never() {
5050
first_iter = true;
5151
}
5252

53-
let mut y : Option<S> = None;
53+
let mut y: Option<S> = None;
5454
// assert types are equal
5555
mem::swap(&mut x, &mut y);
5656
}
5757

58-
fn main() {
59-
}
58+
fn main() {}

0 commit comments

Comments
 (0)