blob: e52e326dc39ac26600586f016f6ce18a75c5df4c [file] [log] [blame]
Jakub Kotur041839c2020-12-21 17:28:15 +01001fn main() {
2 let ac = autocfg::new();
3 if ac.probe_expression("(0..10).step_by(2).rev()") {
4 autocfg::emit("step_by");
5 }
Joel Galensondd2305d2021-05-19 16:31:56 -07006 if ac.probe_expression("{ fn foo<const N: usize>() {} }") {
7 autocfg::emit("min_const_generics");
8 }
Jakub Kotur041839c2020-12-21 17:28:15 +01009}