Fix test for windows os
This commit is contained in:
parent
882e373275
commit
1f7dafbb77
2 changed files with 10 additions and 6 deletions
|
@ -15,6 +15,10 @@ use core::ops::RangeBounds;
|
|||
#[lang = "eh_personality"]
|
||||
extern fn eh_personality() {}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
#[lang = "eh_unwind_resume"]
|
||||
extern fn eh_unwind_resume() {}
|
||||
|
||||
|
||||
// take a reference to any built-in range
|
||||
fn take_range(_r: &impl RangeBounds<i8>) {}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error: `#[panic_handler]` function required, but not found
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:24:16
|
||||
--> $DIR/issue-54505-no-std.rs:28:16
|
||||
|
|
||||
LL | take_range(0..1);
|
||||
| ^^^^
|
||||
|
@ -13,7 +13,7 @@ LL | take_range(0..1);
|
|||
found type `core::ops::Range<{integer}>`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:29:16
|
||||
--> $DIR/issue-54505-no-std.rs:33:16
|
||||
|
|
||||
LL | take_range(1..);
|
||||
| ^^^
|
||||
|
@ -25,7 +25,7 @@ LL | take_range(1..);
|
|||
found type `core::ops::RangeFrom<{integer}>`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:34:16
|
||||
--> $DIR/issue-54505-no-std.rs:38:16
|
||||
|
|
||||
LL | take_range(..);
|
||||
| ^^
|
||||
|
@ -37,7 +37,7 @@ LL | take_range(..);
|
|||
found type `core::ops::RangeFull`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:39:16
|
||||
--> $DIR/issue-54505-no-std.rs:43:16
|
||||
|
|
||||
LL | take_range(0..=1);
|
||||
| ^^^^^
|
||||
|
@ -49,7 +49,7 @@ LL | take_range(0..=1);
|
|||
found type `core::ops::RangeInclusive<{integer}>`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:44:16
|
||||
--> $DIR/issue-54505-no-std.rs:48:16
|
||||
|
|
||||
LL | take_range(..5);
|
||||
| ^^^
|
||||
|
@ -61,7 +61,7 @@ LL | take_range(..5);
|
|||
found type `core::ops::RangeTo<{integer}>`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-54505-no-std.rs:49:16
|
||||
--> $DIR/issue-54505-no-std.rs:53:16
|
||||
|
|
||||
LL | take_range(..=42);
|
||||
| ^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue