@@ -71,15 +71,15 @@ fn explicit_ref_dereference() {
71
71
72
72
fn explicit_box_dereference ( ) {
73
73
// Explicit dereference with type parameter
74
- let g1: Box < char > = Box :: new ( 'a' ) ;
74
+ let g1: Box < char > = Box :: new ( 'a' ) ; // $ method=new
75
75
let _h1 = g1. deref ( ) ; // $ method=deref type=_h1:&T.char
76
76
77
77
// Explicit dereference with type parameter
78
- let g2: Box < char > = Box :: new ( 'a' ) ;
78
+ let g2: Box < char > = Box :: new ( 'a' ) ; // $ method=new
79
79
let _h2 = * g2; // $ method=deref type=_h2:char
80
80
81
81
// 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
83
83
let _h3 = ( * g3) . is_positive ( ) ; // $ method=deref method=is_positive type=_h3:bool
84
84
}
85
85
@@ -94,9 +94,9 @@ fn implicit_dereference() {
94
94
}
95
95
96
96
pub 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
102
102
}
0 commit comments