Skip to content

Commit 7e38c8a

Browse files
committed
Update UI test
1 parent 2553a95 commit 7e38c8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/suggestions/inner_type2.rs

+1-1
Original file line numberDiff line numberDiff 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
}

src/test/ui/suggestions/inner_type2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ error[E0599]: no method named `method` found for union `MaybeUninit` in the curr
1717
LL | 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
2121
note: the method `method` exists on the type `Struct<u32>`
2222
--> $DIR/inner_type2.rs:6:5
2323
|

0 commit comments

Comments
 (0)