summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/unused_braces.min.fixed
blob: 46d57e0dcfca8138b689fccddb23dd45638f4b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass
// run-rustfix
// revisions: full min

#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![warn(unused_braces)]


struct A<const N: usize>;

fn main() {
    let _: A<7>; // ok
    let _: A<7>; //~ WARN unnecessary braces
    let _: A<{ 3 + 5 }>; // ok
}