use surelock::{key::lock_scope, level::Level, mutex::Mutex};
type High = Level<5>;
type Low = Level<2>;
fn main() {
let high: Mutex<u32, High> = Mutex::new(1);
let low: Mutex<u32, Low> = Mutex::new(2);
lock_scope(|key| {
let (_, key) = key.lock(&high);
let (_, _key) = key.lock(&low);
});
}