Skip to content

Commit a96f3b2

Browse files
committedMay 14, 2019
Annotate the type in core::tests::result::test_try
1 parent c50bee0 commit a96f3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libcore/tests/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub fn test_unwrap_or_default() {
198198
#[test]
199199
fn test_try() {
200200
fn try_result_some() -> Option<u8> {
201-
let val = Ok(1)?;
201+
let val = Ok::<_, NoneError>(1)?;
202202
Some(val)
203203
}
204204
assert_eq!(try_result_some(), Some(1));

0 commit comments

Comments
 (0)
Please sign in to comment.