blob: fb7d4886a7c173173d4e3157a11e5f98c809c368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
fn main() {
<()>::foo();
}
trait Foo<const X: usize> {
fn foo() -> usize {
X
}
}
impl Foo<3> for () {}
|