1 fn foo(a: usize, b: usize) -> usize { a }
3 struct S(usize, usize);
6 fn baz(x: usize, y: usize) -> usize { x }
10 let _: usize = foo(_, _);
11 //~^ ERROR `_` can only be used on the left-hand side of an assignment
12 //~| ERROR `_` can only be used on the left-hand side of an assignment
14 //~^ ERROR `_` can only be used on the left-hand side of an assignment
15 //~| ERROR `_` can only be used on the left-hand side of an assignment
16 let _: usize = T::baz(_, _);
17 //~^ ERROR `_` can only be used on the left-hand side of an assignment
18 //~| ERROR `_` can only be used on the left-hand side of an assignment