-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
It's happened to me several times that I've known that a type needed to be Send
or Const
, but I didn't find out until after I had already defined it and tried to use it with a Send
or Const
type parameter that it wasn`t the right kind.
Something like this would maybe help:
struct Foo { ... }
impl Foo: Const;
It would basically not do anything except generate an error if it doesn't type check. I might actually prefer that even the kind traits must be declared explicitly.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.