]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/type-dependent/simple.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / const-generics / type-dependent / simple.rs
1 // run-pass
2 struct R;
3
4 impl R {
5     fn method<const N: u8>(&self) -> u8 { N }
6 }
7 fn main() {
8     assert_eq!(R.method::<1u8>(), 1);
9 }