1 // check-pass 2 3 #![feature(adt_const_params)] 4 #![allow(incomplete_features)] 5 6 pub trait GetType<const N: &'static str> { 7 type Ty; get(&self) -> &Self::Ty8 fn get(&self) -> &Self::Ty; 9 } 10 get_val<T>(value: &T) -> &T::Ty where T: GetType<"hello">,11pub fn get_val<T>(value: &T) -> &T::Ty 12 where 13 T: GetType<"hello">, 14 { 15 value.get() 16 } 17 main()18fn main() {} 19