File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ fn main() {
22
22
let item = std:: mem:: MaybeUninit :: new ( Struct { p : 42_u32 } ) ;
23
23
item. method ( ) ;
24
24
//~^ 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
26
26
}
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
17
17
LL | item.method();
18
18
| ^^^^^^ method not found in `MaybeUninit<Struct<u32>>`
19
19
|
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
21
21
note: the method `method` exists on the type `Struct<u32>`
22
22
--> $DIR/inner_type2.rs:6:5
23
23
|
You can’t perform that action at this time.
0 commit comments