Hello, when i try
#![feature(unsized_const_params)]
use std::marker::ConstParamTy_;
use std::marker::UnsizedConstParamTy;
#[derive(PartialEq, Eq)]
pub struct MyStruct;
impl UnsizedConstParamTy for MyStruct {}
impl ConstParamTy_ for MyStruct {}
// Allowed
pub struct Test<const PARAM: MyStruct> {}
It works, You should allow only allow ConstParamTy and UnsizedConstParamTy derive macro in nightly and not expose the internal trait to user code.
Hello, when i try
It works, You should allow only allow ConstParamTy and UnsizedConstParamTy derive macro in nightly and not expose the internal trait to user code.