]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/impl-const-generic-struct.rs
Auto merge of #74932 - nnethercote:rm-ast-session-globals, r=petrochenkov
[rust.git] / src / test / ui / const-generics / impl-const-generic-struct.rs
1 // run-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete
5
6 struct S<const X: u32>;
7
8 impl<const X: u32> S<X> {
9     fn x() -> u32 {
10         X
11     }
12 }
13
14 fn main() {
15     assert_eq!(S::<19>::x(), 19);
16 }