mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 09:36:06 +00:00
11 lines
206 B
Rust
11 lines
206 B
Rust
// edition:2021
|
|
|
|
async fn foo() {
|
|
inner::<false>().await
|
|
//~^ ERROR: function takes 2 generic arguments but 1 generic argument was supplied
|
|
}
|
|
|
|
async fn inner<T, const PING: bool>() {}
|
|
|
|
fn main() {}
|