@@ -71,15 +71,15 @@ fn explicit_ref_dereference() {
7171
7272fn explicit_box_dereference ( ) {
7373 // Explicit dereference with type parameter
74- let g1: Box < char > = Box :: new ( 'a' ) ;
74+ let g1: Box < char > = Box :: new ( 'a' ) ; // $ method=new
7575 let _h1 = g1. deref ( ) ; // $ method=deref type=_h1:&T.char
7676
7777 // Explicit dereference with type parameter
78- let g2: Box < char > = Box :: new ( 'a' ) ;
78+ let g2: Box < char > = Box :: new ( 'a' ) ; // $ method=new
7979 let _h2 = * g2; // $ method=deref type=_h2:char
8080
8181 // Call method on explicitly dereferenced value with type parameter
82- let g3: Box < i64 > = Box :: new ( 34i64 ) ;
82+ let g3: Box < i64 > = Box :: new ( 34i64 ) ; // $ method=new
8383 let _h3 = ( * g3) . is_positive ( ) ; // $ method=deref method=is_positive type=_h3:bool
8484}
8585
@@ -94,9 +94,9 @@ fn implicit_dereference() {
9494}
9595
9696pub fn test ( ) {
97- explicit_monomorphic_dereference ( ) ;
98- explicit_polymorphic_dereference ( ) ;
99- explicit_ref_dereference ( ) ;
100- explicit_box_dereference ( ) ;
101- implicit_dereference ( ) ;
97+ explicit_monomorphic_dereference ( ) ; // $ method=explicit_monomorphic_dereference
98+ explicit_polymorphic_dereference ( ) ; // $ method=explicit_polymorphic_dereference
99+ explicit_ref_dereference ( ) ; // $ method=explicit_ref_dereference
100+ explicit_box_dereference ( ) ; // $ method=explicit_box_dereference
101+ implicit_dereference ( ) ; // $ method=implicit_dereference
102102}
0 commit comments