summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/need_type_info/infer-var-for-self-param.rs
blob: 51ac7943f24904b8fc92447366e4554a74aa664e (plain)
1
2
3
4
5
6
7
// Regression test for #113610 where we ICEd when trying to print
// inference variables created by instantiating the self type parameter.

fn main() {
    let _ = (Default::default(),);
    //~^ ERROR cannot call associated function on trait
}