2020-12-30 15:59:44 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
|
|
|
--> $DIR/issue-80062.rs:6:23
|
|
|
|
|
|
|
|
|
LL | let _: [u8; sof::<T>()];
|
|
|
|
| ^ cannot perform const operation using `T`
|
|
|
|
|
|
|
|
|
= note: type parameters may not be used in const expressions
|
2023-11-30 20:59:51 +01:00
|
|
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-12-30 15:59:44 +01:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-12-30 15:59:44 +01:00
|
|
|
|