mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 21:47:36 +00:00
15 lines
251 B
Rust
15 lines
251 B
Rust
![]() |
// edition: 2021
|
||
|
|
||
|
#![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() {}
|