test: fix the tests for windows
This commit is contained in:
parent
41f9deb2ee
commit
efae73d95a
@ -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…
x
Reference in New Issue
Block a user