]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-70125-2.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-70125-2.rs
1 // run-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5
6 fn main() {
7 <()>::foo();
8 }
9
10 trait Foo<const X: usize> {
11 fn foo() -> usize {
12 X
13 }
14 }
15
16 impl Foo<3> for () {}