]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/impl-const-generic-struct.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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 }