2020-11-17 04:44:21 -06:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-07-18 16:42:10 -05:00
|
|
|
--> $DIR/param-in-ct-in-ty-param-default.rs:1:44
|
|
|
|
|
|
|
|
|
LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
|
2020-11-17 04:44:21 -06:00
|
|
|
| ^ cannot perform const operation using `T`
|
|
|
|
|
|
|
|
|
= note: type parameters may not be used in const expressions
|
2021-08-27 11:04:57 -05:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-07-18 16:42:10 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|