]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/issue-83606.rs
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / inference / issue-83606.rs
1 // Regression test for #83606.
2
3 fn foo<const N: usize>(_: impl std::fmt::Display) -> [usize; N] {
4     [0; N]
5 }
6
7 fn main() {
8     let _ = foo("foo");
9     //~^ ERROR: type annotations needed for `[usize; _]`
10 }