]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-in-trait-ungated.stderr
Do not complain about missing `fn main()` in some cases
[rust.git] / src / test / ui / const-generics / const-param-in-trait-ungated.stderr
1 error[E0658]: const generics are unstable
2   --> $DIR/const-param-in-trait-ungated.rs:1:13
3    |
4 LL | trait Trait<const T: ()> {}
5    |             ^^^^^^^^^^^
6    |
7    = note: for more information, see https://github.com/rust-lang/rust/issues/44580
8    = help: add `#![feature(const_generics)]` to the crate attributes to enable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0658`.