about summary refs log tree commit diff
path: root/tests/ui/const-generics/transmute-const-param-static-reference.adt_const_params.stderr
blob: c2351c707d7bf5467283c159c6f92af759cd3be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0658]: use of unstable library feature `unsized_const_params`
  --> $DIR/transmute-const-param-static-reference.rs:9:14
   |
LL | struct Const<const P: &'static ()>;
   |              ^^^^^^^^^^^^^^^^^^^^
   |
   = help: add `#![feature(unsized_const_params)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
   = note: required for `&'static ()` to implement `ConstParamTy_`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0658`.