This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ fn main() {
2222 let item = std:: mem:: MaybeUninit :: new ( Struct { p : 42_u32 } ) ;
2323 item. method ( ) ;
2424 //~^ ERROR no method named `method` found for union `MaybeUninit` in the current scope [E0599]
25- //~| HELP if this `MaybeUninit:: <Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
25+ //~| HELP if this `MaybeUninit<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
2626}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ error[E0599]: no method named `method` found for union `MaybeUninit` in the curr
1717LL | item.method();
1818 | ^^^^^^ method not found in `MaybeUninit<Struct<u32>>`
1919 |
20- = help: if this `MaybeUninit:: <Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
20+ = help: if this `MaybeUninit<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
2121note: the method `method` exists on the type `Struct<u32>`
2222 --> $DIR/inner_type2.rs:6:5
2323 |
You can’t perform that action at this time.
0 commit comments