2019-07-28 19:01:57 -05:00
|
|
|
error[E0573]: expected type, found const parameter `C`
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/struct-with-invalid-const-param.rs:3:23
|
2019-07-28 19:01:57 -05:00
|
|
|
|
|
|
|
|
LL | struct S<const C: u8>(C);
|
2020-08-09 23:02:58 -05:00
|
|
|
| ^ not a type
|
2019-07-28 19:01:57 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
error: aborting due to previous error
|
2019-03-21 20:49:42 -05:00
|
|
|
|
2019-10-09 07:19:48 -05:00
|
|
|
For more information about this error, try `rustc --explain E0573`.
|