blob: 6e3c14bc7ad0f55850390f7c8b64587f84f129c5 [file] [log] [blame] [edit]
//@ compile-flags: -Clink-dead-code=on --crate-type=lib
//@ build-pass
// Make sure that we don't monomorphize the impossible method `<() as Visit>::visit`,
// which does not hold under a reveal-all param env.
pub trait Visit {
fn visit() {}
}
pub trait Array<'a> {}
impl Visit for () where (): for<'a> Array<'a> {}