blob: e6e291c3a920ca902b2a4f6b1f3ba2026fb19bd9 [file] [log] [blame] [edit]
// Regression test for #83606.
fn foo<const N: usize>(_: impl std::fmt::Display) -> [usize; N] {
[0; N]
}
fn main() {
let _ = foo("foo");
//~^ ERROR type annotations needed
}