blob: 6911bfa0265e76e1a9052f6442138ab9ec8340da [file] [log] [blame] [edit]
// Confirm that we don't accidentally divide or mod by zero in llvm_type
//@ build-pass
mod a {
pub trait A {}
}
mod b {
pub struct Builder {}
pub fn new() -> Builder {
Builder {}
}
impl Builder {
pub fn with_a(&mut self, _a: fn() -> dyn (::a::A)) {}
}
}
pub use self::b::new;
fn main() {}