2024-02-16 20:02:50 +00:00
|
|
|
//@ edition: 2021
|
2023-03-16 16:29:01 -03:00
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
async fn foo<T>();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
|
|
|
async fn foo<const N: usize>() {}
|
2024-08-10 00:54:16 +00:00
|
|
|
//~^ ERROR: associated function `foo` has an incompatible generic parameter for trait `Foo` [E0053]
|
2023-03-16 16:29:01 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|