Skip to content

Instantly share code, notes, and snippets.

@gheoan
Created May 13, 2026 14:16
Show Gist options
  • Select an option

  • Save gheoan/2ffe5349f1d98ef3edf91f4bc088c2de to your computer and use it in GitHub Desktop.

Select an option

Save gheoan/2ffe5349f1d98ef3edf91f4bc088c2de to your computer and use it in GitHub Desktop.
#![crate_type = "lib"]
use std::rc::Rc;
use std::collections::BTreeMap;
mod m {
use super::*;
use std::rc::Rc;
pub fn f1() {
std::hint::black_box(Rc::new(0));
std::hint::black_box(BTreeMap::<u32, u32>::new());
}
}
pub fn f2() {
m::f1();
std::hint::black_box(Rc::new(0));
std::hint::black_box(BTreeMap::<u32, u32>::new());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment