-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Disallow implementation of UnsizedConstParamTy and ConstParamTy_ in user code #150963
Copy link
Copy link
Open
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)F-adt_const_params`#![feature(adt_const_params)]``#![feature(adt_const_params)]`F-unsized_const_params`#![feature(unsized_const_params)]``#![feature(unsized_const_params)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)F-adt_const_params`#![feature(adt_const_params)]``#![feature(adt_const_params)]`F-unsized_const_params`#![feature(unsized_const_params)]``#![feature(unsized_const_params)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
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.