File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn main() {
3636
3737 assert_eq ! (
3838 panic:: catch_unwind( || {
39- mem:: MaybeUninit :: <!>:: uninitialized( ) . into_inner ( )
39+ mem:: MaybeUninit :: <!>:: uninitialized( ) . into_initialized ( )
4040 } ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
4141 s == "Attempted to instantiate uninhabited type !"
4242 } ) ) ,
@@ -63,7 +63,7 @@ fn main() {
6363
6464 assert_eq ! (
6565 panic:: catch_unwind( || {
66- mem:: MaybeUninit :: <Foo >:: uninitialized( ) . into_inner ( )
66+ mem:: MaybeUninit :: <Foo >:: uninitialized( ) . into_initialized ( )
6767 } ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
6868 s == "Attempted to instantiate uninhabited type Foo"
6969 } ) ) ,
@@ -90,7 +90,7 @@ fn main() {
9090
9191 assert_eq ! (
9292 panic:: catch_unwind( || {
93- mem:: MaybeUninit :: <Bar >:: uninitialized( ) . into_inner ( )
93+ mem:: MaybeUninit :: <Bar >:: uninitialized( ) . into_initialized ( )
9494 } ) . err( ) . and_then( |a| a. downcast_ref:: <String >( ) . map( |s| {
9595 s == "Attempted to instantiate uninhabited type Bar"
9696 } ) ) ,
You can’t perform that action at this time.
0 commit comments