]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/uninferred-consts.rs
correctly handle uninferred consts
[rust.git] / src / test / ui / const-generics / uninferred-consts.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 // taken from https://github.com/rust-lang/rust/issues/70507#issuecomment-615268893
5 struct Foo;
6 impl Foo {
7     fn foo<const N: usize>(self) {}
8 }
9 fn main() {
10     Foo.foo();
11     //~^ ERROR type annotations needed
12 }