rust/tests/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.4 KiB
Plaintext
Raw Normal View History

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
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(_, _);
| ^ `_` not allowed here
2019-08-08 19:31:24 +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(_, _);
| ^ `_` not allowed here
2019-08-08 19:31:24 +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(_, _);
| ^ `_` not allowed here
2019-08-08 19:31:24 +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(_, _);
| ^ `_` not allowed here
2019-08-08 19:31:24 +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(_, _);
| ^ `_` 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