Skip to content

Commit

Permalink
Better naming post copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Smith committed Oct 21, 2020
1 parent 070a751 commit 0f4abbf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/ui/await_holding_refcell_ref.rs
Expand Up @@ -61,11 +61,11 @@ fn block_bad(x: &RefCell<u32>) -> impl std::future::Future<Output = u32> + '_ {
}

fn main() {
let m = RefCell::new(100);
good(&m);
bad(&m);
bad_mut(&m);
also_bad(&m);
not_good(&m);
block_bad(&m);
let rc = RefCell::new(100);
good(&rc);
bad(&rc);
bad_mut(&rc);
also_bad(&rc);
not_good(&rc);
block_bad(&rc);
}

0 comments on commit 0f4abbf

Please sign in to comment.