Skip to content

Commit

Permalink
Add 82126
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Feb 15, 2021
1 parent b6ac595 commit e1176ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ices/82126.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use std::sync::Mutex;

struct MarketMultiplier {}

impl MarketMultiplier {
fn buy(&mut self) -> &mut usize {
todo!()
}
}

async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
LockedMarket(generator.lock().unwrap().buy())
}

struct LockedMarket<T>(T);

fn main() {}

0 comments on commit e1176ec

Please sign in to comment.