]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-underscore_const_names.stderr
Auto merge of #56396 - dlrobertson:fix_va_list_tests, r=nikic
[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 | |     use std::marker::PhantomData;
6 LL | |     struct ImplementsTrait<T: Trt>(PhantomData<T>);
7 LL | |     let _ = ImplementsTrait::<Str>(PhantomData);
8 LL | |     ()
9 LL | | };
10    | |__^
11    |
12    = help: add #![feature(underscore_const_names)] to the crate attributes to enable
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0658`.