rust/tests/ui/lint/unused_braces_macro.rs

7 lines
101 B
Rust
Raw Normal View History

2022-12-09 17:21:12 -06:00
// build-pass
pub fn foo<const BAR: bool> () {}
fn main() {
foo::<{cfg!(feature = "foo")}>();
}