Skip to content

Commit 1712448

Browse files
committed
fixed inner_deref test case for None
1 parent 8aa049e commit 1712448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/tests/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,6 @@ fn test_option_deref() {
305305
assert_eq!(ref_option.deref(), Some(&42));
306306

307307
// None: &Option<T: Deref>>::None -> None
308-
let ref_option = &None;
308+
let ref_option: &Option<&i32> = &None;
309309
assert_eq!(ref_option.deref(), None);
310310
}

0 commit comments

Comments
 (0)