about summary refs log tree commit diff
path: root/tests/ui/suggestions/missing-type-param-used-in-param.rs
blob: 1d4f9bf94c88aa31c9b1fd3cb7ac40fbdfeab1b0 (plain)
1
2
3
4
5
6
7
8
//@ run-rustfix

fn two_type_params<A, B>(_: B) {}

fn main() {
    two_type_params::<String>(100); //~ ERROR function takes 2 generic arguments
    two_type_params::<String, _>(100);
}