blob: be56a3020cc33b911451b5aab5502272a0cc04a7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Regression test for #83606.
fn foo<const N: usize>(_: impl std::fmt::Display) -> [usize; N] {
[0; N]
}
fn main() {
let _ = foo("foo"); //<- Do not suggest `foo::<N>("foo");`!
//~^ ERROR: type annotations needed for `[usize; _]`
}
|