]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr
Add underscore expressions for destructuring assignments
[rust.git] / src / test / ui / suggestions / fn-or-tuple-struct-with-underscore-args.stderr
1 error[E0658]: destructuring assignments are unstable
2   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:24
3    |
4 LL |     let _: usize = foo(_, _);
5    |                        ^
6    |
7    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
8    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
9
10 error[E0658]: destructuring assignments are unstable
11   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:27
12    |
13 LL |     let _: usize = foo(_, _);
14    |                           ^
15    |
16    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
17    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
18
19 error[E0658]: destructuring assignments are unstable
20   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:15:18
21    |
22 LL |     let _: S = S(_, _);
23    |                  ^
24    |
25    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
26    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
27
28 error[E0658]: destructuring assignments are unstable
29   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:15:21
30    |
31 LL |     let _: S = S(_, _);
32    |                     ^
33    |
34    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
35    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
36
37 error[E0658]: destructuring assignments are unstable
38   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:20:27
39    |
40 LL |     let _: usize = T::baz(_, _);
41    |                           ^
42    |
43    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
44    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
45
46 error[E0658]: destructuring assignments are unstable
47   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:20:30
48    |
49 LL |     let _: usize = T::baz(_, _);
50    |                              ^
51    |
52    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
53    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
54
55 error: in expressions, `_` can only be used on the left-hand side of an assignment
56   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:24
57    |
58 LL |     let _: usize = foo(_, _);
59    |                        ^ `_` not allowed here
60
61 error: in expressions, `_` can only be used on the left-hand side of an assignment
62   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:10:27
63    |
64 LL |     let _: usize = foo(_, _);
65    |                           ^ `_` not allowed here
66
67 error: in expressions, `_` can only be used on the left-hand side of an assignment
68   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:15:18
69    |
70 LL |     let _: S = S(_, _);
71    |                  ^ `_` not allowed here
72
73 error: in expressions, `_` can only be used on the left-hand side of an assignment
74   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:15:21
75    |
76 LL |     let _: S = S(_, _);
77    |                     ^ `_` not allowed here
78
79 error: in expressions, `_` can only be used on the left-hand side of an assignment
80   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:20:27
81    |
82 LL |     let _: usize = T::baz(_, _);
83    |                           ^ `_` not allowed here
84
85 error: in expressions, `_` can only be used on the left-hand side of an assignment
86   --> $DIR/fn-or-tuple-struct-with-underscore-args.rs:20:30
87    |
88 LL |     let _: usize = T::baz(_, _);
89    |                              ^ `_` not allowed here
90
91 error: aborting due to 12 previous errors
92
93 For more information about this error, try `rustc --explain E0658`.