1 2 3 4 5 6
// build-pass pub fn foo<const BAR: bool> () {} fn main() { foo::<{cfg!(feature = "foo")}>(); }