//@ check-pass trait Trait {} fn main() { mod below { pub struct Type(T); } struct InsideMain; trait HasFoo {} impl Trait for &Vec> where T: HasFoo {} }