File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1566,11 +1566,11 @@ floating! { f64 }
15661566// Implementation of Display/Debug for various core types
15671567
15681568#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1569- impl < T > Debug for * const T {
1569+ impl < T : ? Sized > Debug for * const T {
15701570 fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
15711571}
15721572#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1573- impl < T > Debug for * mut T {
1573+ impl < T : ? Sized > Debug for * mut T {
15741574 fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
15751575}
15761576
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ enum Enum {
2424 StructVariant { x : isize , y : usize }
2525}
2626
27+ #[ derive( Debug ) ]
28+ struct Pointers ( * const Send , * mut Sync ) ;
29+
2730macro_rules! t {
2831 ( $x: expr, $expected: expr) => {
2932 assert_eq!( format!( "{:?}" , $x) , $expected. to_string( ) )
You can’t perform that action at this time.
0 commit comments