// ignore-wasm32 compiled with panic=abort by default // needs-unwind #![crate_type = "lib"] pub trait Factory { type Item; } pub struct IntFactory; impl Factory for IntFactory { type Item = usize; } // EMIT_MIR caller_with_trivial_bound.foo.Inline.diff pub fn foo() where IntFactory: Factory, { let mut x: >::Item = bar::(); } #[inline(always)] pub fn bar() -> >::Item { 0usize }