]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/impl-const-generic-struct.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / const-generics / impl-const-generic-struct.rs
1 // run-pass
2 struct S<const X: u32>;
3
4 impl<const X: u32> S<X> {
5     fn x() -> u32 {
6         X
7     }
8 }
9
10 fn main() {
11     assert_eq!(S::<19>::x(), 19);
12 }