blob: 40d78484307a651f601d24a7ad82befaa9ce63e3 [file] [edit]
//@ known-bug: #149703
#![feature(const_trait_impl)]
trait Z {
type Assoc;
}
struct A;
impl<T: const FnOnce()> Z for T {
type Assoc = ();
}
impl<T> From<<A as Z>::Assoc> for T {}
fn main() {}