mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
12 lines
194 B
Rust
12 lines
194 B
Rust
// check-pass
|
|
// run-rustfix
|
|
#![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
|
|
}
|