]> git.lizzy.rs Git - rust.git/blob - tests/ui/derives/derive-macro-const-default.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / derives / derive-macro-const-default.rs
1 // check-pass
2 #[derive(Clone, PartialEq, Debug)]
3 struct Example<T, const N: usize = 1usize>([T; N]);
4
5 fn main() {
6     let a = Example([(); 16]);
7     let b = a.clone();
8     if a != b {
9         let _c = format!("{:?}", a);
10     }
11 }