Skip to content

Commit 3ae4abb

Browse files
committed
correct coercion comments
1 parent dce20bf commit 3ae4abb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/ui/async-await/return-ty-raw-ptr-coercion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::Debug;
1111

1212
const TMP: u32 = 22;
1313

14-
// Coerce from `Box<"asdf">` to `Box<dyn Debug>`.
14+
// Coerce from `&u32` to `*const u32`
1515
fn raw_pointer_coercion() {
1616
fn sync_example() -> *const u32 {
1717
&TMP

src/test/ui/async-await/return-ty-unsize-coercion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use std::fmt::Debug;
1111

12-
// Coerce from `Box<"asdf">` to `Box<dyn Debug>`.
12+
// Unsizing coercion from `Box<&'static str>` to `Box<dyn Debug>`.
1313
fn unsize_trait_coercion() {
1414
fn sync_example() -> Box<dyn Debug> {
1515
Box::new("asdf")
@@ -20,7 +20,7 @@ fn unsize_trait_coercion() {
2020
}
2121
}
2222

23-
// Coerce from `Box<[u32; N]>` to `Box<[32]>`.
23+
// Unsizing coercion from `Box<[u32; N]>` to `Box<[32]>`.
2424
fn unsize_slice_coercion() {
2525
fn sync_example() -> Box<[u32]> {
2626
Box::new([0])

0 commit comments

Comments
 (0)