mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
8 lines
187 B
Rust
8 lines
187 B
Rust
// Weakened closure sig inference by #140283.
|
|
fn foo<F: FnOnce(&str) -> usize, const N: usize>(x: [F; N]) {}
|
|
|
|
fn main() {
|
|
foo([|s| s.len()])
|
|
//~^ ERROR: type annotations needed
|
|
}
|