]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/type-dependent/qpath.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / const-generics / type-dependent / qpath.rs
CommitLineData
3dfed10e 1// run-pass
1b1a35ee
XL
2// revisions: full min
3#![cfg_attr(full, feature(const_generics))]
4#![cfg_attr(full, allow(incomplete_features))]
5#![cfg_attr(min, feature(min_const_generics))]
3dfed10e
XL
6
7struct A;
8impl A {
9 fn foo<const N: usize>() -> usize { N + 1 }
10}
11
12fn main() {
13 assert_eq!(A::foo::<7>(), 8);
14}