Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
async-await
/
in-trait
/
generics-mismatch.rs
blob: 51fdc2fe8a87a9ff86ce5949ae0dfe992cdb3a32 [
file
] [
log
] [
blame
]
// 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
()
{}