Closed
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.