File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn main() {
36
36
37
37
assert_eq ! (
38
38
panic:: catch_unwind( || {
39
- mem:: MaybeUninit :: <!>:: uninitialized( ) . into_inner ( )
39
+ mem:: MaybeUninit :: <!>:: uninitialized( ) . into_initialized ( )
40
40
} ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
41
41
s == "Attempted to instantiate uninhabited type !"
42
42
} ) ) ,
@@ -63,7 +63,7 @@ fn main() {
63
63
64
64
assert_eq ! (
65
65
panic:: catch_unwind( || {
66
- mem:: MaybeUninit :: <Foo >:: uninitialized( ) . into_inner ( )
66
+ mem:: MaybeUninit :: <Foo >:: uninitialized( ) . into_initialized ( )
67
67
} ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
68
68
s == "Attempted to instantiate uninhabited type Foo"
69
69
} ) ) ,
@@ -90,7 +90,7 @@ fn main() {
90
90
91
91
assert_eq ! (
92
92
panic:: catch_unwind( || {
93
- mem:: MaybeUninit :: <Bar >:: uninitialized( ) . into_inner ( )
93
+ mem:: MaybeUninit :: <Bar >:: uninitialized( ) . into_initialized ( )
94
94
} ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
95
95
s == "Attempted to instantiate uninhabited type Bar"
96
96
} ) ) ,
You can’t perform that action at this time.
0 commit comments