blob: e52e326dc39ac26600586f016f6ce18a75c5df4c (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
let ac = autocfg::new();
if ac.probe_expression("(0..10).step_by(2).rev()") {
autocfg::emit("step_by");
}
if ac.probe_expression("{ fn foo<const N: usize>() {} }") {
autocfg::emit("min_const_generics");
}
}
|