File tree 1 file changed +6
-3
lines changed
src/test/ui/rfc-2091-track-caller
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,15 @@ impl Tracked for () {
47
47
48
48
fn main ( ) {
49
49
let tracked: & dyn Tracked = & ( ) ;
50
- tracked. track_caller_trait_method ( line ! ( ) , 13 ) ; // The column is the start of 'track_caller_trait_method'
50
+ // The column is the start of 'track_caller_trait_method'
51
+ tracked. track_caller_trait_method ( line ! ( ) , 13 ) ;
51
52
52
53
const TRACKED : & dyn Tracked = & ( ) ;
53
- TRACKED . track_caller_trait_method ( line ! ( ) , 13 ) ; // The column is the start of 'track_caller_trait_method'
54
+ // The column is the start of 'track_caller_trait_method'
55
+ TRACKED . track_caller_trait_method ( line ! ( ) , 13 ) ;
54
56
TRACKED . track_caller_not_on_trait_method ( ) ;
55
57
58
+ // The column is the start of `track_caller_through_self`
56
59
let boxed: Box < dyn Tracked > = Box :: new ( ( ) ) ;
57
- boxed. track_caller_through_self ( line ! ( ) , 11 ) ; // The column is the start of `track_caller_through_self`
60
+ boxed. track_caller_through_self ( line ! ( ) , 11 ) ;
58
61
}
You can’t perform that action at this time.
0 commit comments