]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/derive-macro-const-default.rs
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / 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 }