test: fix the tests for windows
This commit is contained in:
parent
41f9deb2ee
commit
efae73d95a
2 changed files with 2 additions and 2 deletions
|
|
@ -31,4 +31,4 @@ enum D { Baz { x: int } }
|
|||
//~^^ ERROR `FromPrimitive` cannot be derived for enums with struct variants
|
||||
//~^^^ ERROR `FromPrimitive` cannot be derived for enums with struct variants
|
||||
|
||||
fn main() {}
|
||||
pub fn main() {}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ enum A {
|
|||
Qux,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
let x: Option<A> = FromPrimitive::from_int(int::max_value);
|
||||
assert_eq!(x, Some(Foo));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue