mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
16 lines
282 B
Rust
16 lines
282 B
Rust
// edition: 2021
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Foo {
|
|
async fn foo<T>();
|
|
}
|
|
|
|
impl Foo for () {
|
|
async fn foo<const N: usize>() {}
|
|
//~^ ERROR: method `foo` has an incompatible generic parameter for trait `Foo` [E0053]
|
|
}
|
|
|
|
fn main() {}
|