Update UI test
This commit is contained in:
parent
2553a9590c
commit
7e38c8a750
2 changed files with 2 additions and 2 deletions
|
|
@ -22,5 +22,5 @@ fn main() {
|
|||
let item = std::mem::MaybeUninit::new(Struct { p: 42_u32 });
|
||||
item.method();
|
||||
//~^ ERROR no method named `method` found for union `MaybeUninit` in the current scope [E0599]
|
||||
//~| HELP if this `MaybeUninit::<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
|
||||
//~| HELP if this `MaybeUninit<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ error[E0599]: no method named `method` found for union `MaybeUninit` in the curr
|
|||
LL | item.method();
|
||||
| ^^^^^^ method not found in `MaybeUninit<Struct<u32>>`
|
||||
|
|
||||
= help: if this `MaybeUninit::<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
|
||||
= help: if this `MaybeUninit<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
|
||||
note: the method `method` exists on the type `Struct<u32>`
|
||||
--> $DIR/inner_type2.rs:6:5
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue