]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-eval/feature-gate-const_fn_union.stderr
Rollup merge of #53110 - Xanewok:save-analysis-remap-path, r=nrc
[rust.git] / src / test / ui / const-eval / feature-gate-const_fn_union.stderr
1 error[E0658]: unions in const fn are unstable (see issue #51909)
2   --> $DIR/feature-gate-const_fn_union.rs:21:5
3    |
4 LL |     Foo { u }.i //~ ERROR unions in const fn are unstable
5    |     ^^^^^^^^^^^
6    |
7    = help: add #![feature(const_fn_union)] to the crate attributes to enable
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0658`.