rust/tests/ui/lint/unused_braces_macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
101 B
Rust
Raw Normal View History

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