rust/tests/ui/const-generics/infer/cannot-infer-const-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
104 B
Rust
Raw Normal View History

fn foo<const X: usize>() -> usize {
0
}
fn main() {
foo(); //~ ERROR type annotations needed
}