3 use std::marker::PhantomData;
5 pub struct MyGenericType<T> {
6 _marker: PhantomData<*const T>,
9 pub struct MyNonGenericType;
11 impl<T> From<MyGenericType<T>> for MyNonGenericType {
12 fn from(_: MyGenericType<T>) -> Self {
18 const MY_CONSTANT: i32;
21 impl<T> MyTrait for MyGenericType<T>
23 Self: Into<MyNonGenericType>,
25 const MY_CONSTANT: i32 = 1;
28 impl<T> MyGenericType<T> {
29 const MY_OTHER_CONSTANT: i32 = <MyGenericType<T> as MyTrait>::MY_CONSTANT;