about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-adt_const_params.stderr
blob: 7ea91a8f4c2bf35e1547be745bf4043ba8cf7667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: `Bar` is forbidden as the type of a const generic parameter
  --> $DIR/feature-gate-adt_const_params.rs:3:21
   |
LL | struct Foo<const N: Bar>;
   |                     ^^^
   |
   = note: the only supported types are integers, `bool`, and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |

error: aborting due to 1 previous error