Jakub Kotur | 041839c | 2020-12-21 17:28:15 +0100 | [diff] [blame] | 1 | fn main() { |
2 | let ac = autocfg::new(); | ||||
3 | if ac.probe_expression("(0..10).step_by(2).rev()") { | ||||
4 | autocfg::emit("step_by"); | ||||
5 | } | ||||
Joel Galenson | dd2305d | 2021-05-19 16:31:56 -0700 | [diff] [blame] | 6 | if ac.probe_expression("{ fn foo<const N: usize>() {} }") { |
7 | autocfg::emit("min_const_generics"); | ||||
8 | } | ||||
Jakub Kotur | 041839c | 2020-12-21 17:28:15 +0100 | [diff] [blame] | 9 | } |