File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::fmt::Debug;
11
11
12
12
const TMP : u32 = 22 ;
13
13
14
- // Coerce from `Box<"asdf"> ` to `Box<dyn Debug>`.
14
+ // Coerce from `&u32 ` to `*const u32`
15
15
fn raw_pointer_coercion ( ) {
16
16
fn sync_example ( ) -> * const u32 {
17
17
& TMP
Original file line number Diff line number Diff line change 9
9
10
10
use std:: fmt:: Debug ;
11
11
12
- // Coerce from `Box<"asdf" >` to `Box<dyn Debug>`.
12
+ // Unsizing coercion from `Box<&'static str >` to `Box<dyn Debug>`.
13
13
fn unsize_trait_coercion ( ) {
14
14
fn sync_example ( ) -> Box < dyn Debug > {
15
15
Box :: new ( "asdf" )
@@ -20,7 +20,7 @@ fn unsize_trait_coercion() {
20
20
}
21
21
}
22
22
23
- // Coerce from `Box<[u32; N]>` to `Box<[32]>`.
23
+ // Unsizing coercion from `Box<[u32; N]>` to `Box<[32]>`.
24
24
fn unsize_slice_coercion ( ) {
25
25
fn sync_example ( ) -> Box < [ u32 ] > {
26
26
Box :: new ( [ 0 ] )
You can’t perform that action at this time.
0 commit comments