about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/generics-mismatch.rs
blob: 1f7095ae72b52e2c7fd607eb4ac28b9f179419f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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() {}