summaryrefslogtreecommitdiffstats
path: root/third_party/rust/autocfg/examples/integers.rs
blob: 23d4cba6ee3e96e8ee90d701d035478a73841ecc (plain)
1
2
3
4
5
6
7
8
9
extern crate autocfg;

fn main() {
    // Normally, cargo will set `OUT_DIR` for build scripts.
    let ac = autocfg::AutoCfg::with_dir("target").unwrap();
    for i in 3..8 {
        ac.emit_has_type(&format!("i{}", 1 << i));
    }
}