]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cross/cross-file-errors/main.stderr
Add underscore expressions for destructuring assignments
[rust.git] / src / test / ui / cross / cross-file-errors / main.stderr
1 error[E0658]: destructuring assignments are unstable
2   --> $DIR/underscore.rs:8:9
3    |
4 LL |         _
5    |         ^
6    | 
7   ::: $DIR/main.rs:5:5
8    |
9 LL |     underscore!();
10    |     -------------- in this macro invocation
11    |
12    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
13    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
14    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: in expressions, `_` can only be used on the left-hand side of an assignment
17   --> $DIR/underscore.rs:8:9
18    |
19 LL |         _
20    |         ^ `_` not allowed here
21    | 
22   ::: $DIR/main.rs:5:5
23    |
24 LL |     underscore!();
25    |     -------------- in this macro invocation
26    |
27    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0658`.