File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1566,11 +1566,11 @@ floating! { f64 }
1566
1566
// Implementation of Display/Debug for various core types
1567
1567
1568
1568
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1569
- impl < T > Debug for * const T {
1569
+ impl < T : ? Sized > Debug for * const T {
1570
1570
fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
1571
1571
}
1572
1572
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1573
- impl < T > Debug for * mut T {
1573
+ impl < T : ? Sized > Debug for * mut T {
1574
1574
fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
1575
1575
}
1576
1576
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ enum Enum {
24
24
StructVariant { x : isize , y : usize }
25
25
}
26
26
27
+ #[ derive( Debug ) ]
28
+ struct Pointers ( * const Send , * mut Sync ) ;
29
+
27
30
macro_rules! t {
28
31
( $x: expr, $expected: expr) => {
29
32
assert_eq!( format!( "{:?}" , $x) , $expected. to_string( ) )
You can’t perform that action at this time.
0 commit comments