]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-underscore_const_names.stderr
Auto merge of #56244 - oli-obk:loud_ui_errors, r=nikomatsakis
[rust.git] / src / test / ui / feature-gates / feature-gate-underscore_const_names.stderr
1 error[E0658]: naming constants with `_` is unstable (see issue #54912)
2   --> $DIR/feature-gate-underscore_const_names.rs:17:1
3    |
4 LL | / const _ : () = {
5 LL | | //~^ ERROR is unstable
6 LL | |     use std::marker::PhantomData;
7 LL | |     struct ImplementsTrait<T: Trt>(PhantomData<T>);
8 LL | |     let _ = ImplementsTrait::<Str>(PhantomData);
9 LL | |     ()
10 LL | | };
11    | |__^
12    |
13    = help: add #![feature(underscore_const_names)] to the crate attributes to enable
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0658`.