about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/dont-probe-missing-item-name-2.rs
blob: e8329e3694d732b105e2df889fc669ea7b365321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait Foo {
    fn rpitit() -> impl Sized;
}

// Ensure that we don't try to probe the name of the RPITIT when looking for
// fixes to suggest for the redundant generic below.

fn test<T: Foo<i32, Assoc = i32>>() {}
//~^ ERROR trait takes 0 generic arguments but 1 generic argument was supplied
//~| ERROR associated type `Assoc` not found for `Foo`

fn main() {}