blob: fa647ea0bc7810cf1380684e1b9b4f696920a5d6 [file] [log] [blame]
//@ edition:2021
#![feature(return_type_notation)]
//~^ WARN the feature `return_type_notation` is incomplete
trait Super1<'a> {
async fn test();
}
impl Super1<'_> for () {
async fn test() {}
}
trait Super2 {
async fn test();
}
impl Super2 for () {
async fn test() {}
}
trait Foo: for<'a> Super1<'a> + Super2 {}
impl Foo for () {}
fn test<T>()
where
T: Foo<test(): Send>,
//~^ ERROR ambiguous associated function `test` in bounds of `Foo`
{
}
fn main() {
test::<()>();
}