Skip to content

Commit

Permalink
Fix line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Jun 4, 2021
1 parent d06f774 commit 585fe22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/ui/rfc-2091-track-caller/tracked-trait-obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ impl Tracked for () {

fn main() {
let tracked: &dyn Tracked = &();
tracked.track_caller_trait_method(line!(), 13); // The column is the start of 'track_caller_trait_method'
// The column is the start of 'track_caller_trait_method'
tracked.track_caller_trait_method(line!(), 13);

const TRACKED: &dyn Tracked = &();
TRACKED.track_caller_trait_method(line!(), 13); // The column is the start of 'track_caller_trait_method'
// The column is the start of 'track_caller_trait_method'
TRACKED.track_caller_trait_method(line!(), 13);
TRACKED.track_caller_not_on_trait_method();

// The column is the start of `track_caller_through_self`
let boxed: Box<dyn Tracked> = Box::new(());
boxed.track_caller_through_self(line!(), 11); // The column is the start of `track_caller_through_self`
boxed.track_caller_through_self(line!(), 11);
}

0 comments on commit 585fe22

Please sign in to comment.