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;
1111
1212const TMP : u32 = 22 ;
1313
14- // Coerce from `Box<"asdf"> ` to `Box<dyn Debug>`.
14+ // Coerce from `&u32 ` to `*const u32`
1515fn raw_pointer_coercion ( ) {
1616 fn sync_example ( ) -> * const u32 {
1717 & TMP
Original file line number Diff line number Diff line change 99
1010use std:: fmt:: Debug ;
1111
12- // Coerce from `Box<"asdf" >` to `Box<dyn Debug>`.
12+ // Unsizing coercion from `Box<&'static str >` to `Box<dyn Debug>`.
1313fn 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]>`.
2424fn unsize_slice_coercion ( ) {
2525 fn sync_example ( ) -> Box < [ u32 ] > {
2626 Box :: new ( [ 0 ] )
You can’t perform that action at this time.
0 commit comments