blob: bb6622c0a5fb7a6f47dda090738be93f79f83f7f [file] [log] [blame]
// revisions: current next
//[next] compile-flags: -Ztrait-solver=next
trait A {
type B<'b>;
fn a() -> Self::B<'static>;
}
struct C;
struct Wrapper<T>(T);
impl A for C {
type B<T> = Wrapper<T>;
//~^ ERROR type `B` has 1 type parameter but its trait declaration has 0 type parameters
fn a() -> Self::B<'static> {}
}
fn main() {}