summaryrefslogtreecommitdiff
path: root/tests/src/external.rs
blob: 521749d6fad58a4f1083c5f5659c73c0c64bc208 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! This module uses external types and functions

use std::cell::Cell;

pub fn use_get(rc: &Cell<u32>) -> u32 {
    rc.get()
}

pub fn incr(rc: &mut Cell<u32>) {
    *rc.get_mut() += 1;
}