]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/different_byref_simple.rs
1 // Check that different const types are different.
4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
7 struct ConstUsize
<const V
: usize> {}
10 let mut u
= ConstUsize
::<3> {}
;
11 u
= ConstUsize
::<4> {}
;
12 //~^ ERROR mismatched types