2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:24
|
|
|
|
|
|
|
|
|
LL | let _: usize = foo(_, _);
|
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2019-08-08 19:31:24 +00:00
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:27
|
|
|
|
|
|
|
|
|
LL | let _: usize = foo(_, _);
|
2020-11-11 13:15:15 +00:00
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2021-11-03 06:50:57 +00:00
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:13:18
|
2019-08-08 19:31:24 +00:00
|
|
|
|
|
|
|
|
LL | let _: S = S(_, _);
|
2020-11-11 13:15:15 +00:00
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2021-11-03 06:50:57 +00:00
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:13:21
|
2019-08-08 19:31:24 +00:00
|
|
|
|
|
|
|
|
LL | let _: S = S(_, _);
|
2020-11-11 13:15:15 +00:00
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2021-11-03 06:50:57 +00:00
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:16:27
|
2019-08-08 19:31:24 +00:00
|
|
|
|
|
|
|
|
LL | let _: usize = T::baz(_, _);
|
2020-11-11 13:15:15 +00:00
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2020-11-11 13:15:15 +00:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2021-11-03 06:50:57 +00:00
|
|
|
--> $DIR/fn-or-tuple-struct-with-underscore-args.rs:16:30
|
2019-08-08 19:31:24 +00:00
|
|
|
|
|
|
|
|
LL | let _: usize = T::baz(_, _);
|
2020-11-11 13:15:15 +00:00
|
|
|
| ^ `_` not allowed here
|
2019-08-08 19:31:24 +00:00
|
|
|
|
2021-11-03 06:50:57 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2019-08-08 19:31:24 +00:00
|
|
|
|