]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-fn-destructuring-arg.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / consts / const-fn-destructuring-arg.stderr
1 error[E0658]: arguments of constant functions can only be immutable by-value bindings (see issue #48821)
2   --> $DIR/const-fn-destructuring-arg.rs:17:13
3    |
4 LL |             a,
5    |             ^
6    |
7    = help: add #![feature(const_let)] to the crate attributes to enable
8
9 error[E0658]: arguments of constant functions can only be immutable by-value bindings (see issue #48821)
10   --> $DIR/const-fn-destructuring-arg.rs:19:13
11    |
12 LL |             b
13    |             ^
14    |
15    = help: add #![feature(const_let)] to the crate attributes to enable
16
17 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
18   --> $DIR/const-fn-destructuring-arg.rs:22:5
19    |
20 LL |     a + b
21    |     ^
22    |
23    = help: add #![feature(const_let)] to the crate attributes to enable
24
25 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
26   --> $DIR/const-fn-destructuring-arg.rs:22:9
27    |
28 LL |     a + b
29    |         ^
30    |
31    = help: add #![feature(const_let)] to the crate attributes to enable
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0658`.