summaryrefslogtreecommitdiffstats
path: root/vendor/autocfg/examples/versions.rs
blob: 992919b7c642806e52ae35db49a9b3e3dd787ace (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 0..100 {
        ac.emit_rustc_version(1, i);
    }
}