Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
const-generics
/
struct-with-invalid-const-param.rs
blob: be1c4b0e8e80e61cebe6a8b2c1ed5fdefeab05d5 [
file
]
// Checks that a const param cannot be stored in a struct.
struct
S
<
const
C
:
u8
>(
C
);
//~ ERROR expected type, found const parameter
fn
main
()
{}