blob: 7d4749f3b7a9a822a9fa0c63b02e39d3653b9aaa [file] [log] [blame]
//@ compile-flags: -Zinline-mir --emit=mir
//@ build-pass
pub trait Associate {
type Associated;
}
pub struct Wrap<'a> {
pub field: &'a i32,
}
pub trait Create<T> {
fn create() -> Self;
}
pub fn oh_no<'a, T>()
where
Wrap<'a>: Associate,
<Wrap<'a> as Associate>::Associated: Create<T>,
{
<Wrap<'a> as Associate>::Associated::create();
}
pub fn main() {}