]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type-dependent/simple.rs
Auto merge of #75134 - Aaron1011:feature/expn-data-parent-hash, r=petrochenkov
[rust.git] / src / test / ui / const-generics / type-dependent / simple.rs
1 // run-pass
2 #![feature(const_generics)]
3 #![allow(incomplete_features)]
4
5 struct R;
6
7 impl R {
8     fn method<const N: u8>(&self) -> u8 { N }
9 }
10 fn main() {
11     assert_eq!(R.method::<1u8>(), 1);
12 }