mirror of
https://github.com/openharmony/third_party_rust_either.git
synced 2026-07-21 03:05:24 -04:00
Fix types in test
This commit is contained in:
+1
-1
@@ -289,7 +289,7 @@ fn basic() {
|
||||
#[test]
|
||||
fn macros() {
|
||||
fn a() -> Either<u32, u32> {
|
||||
let x: u32 = try_left!(Right(1337));
|
||||
let x: u32 = try_left!(Right(1337u32));
|
||||
Left(x * 2)
|
||||
}
|
||||
assert_eq!(a(), Right(1337));
|
||||
|
||||
Reference in New Issue
Block a user