2018-08-19 08:30:23 -05:00
|
|
|
// Confirm that we don't accidentally divide or mod by zero in llvm_type
|
2018-05-16 22:02:01 -05:00
|
|
|
|
|
|
|
// compile-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() -> ::a::A) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use self::b::new;
|
|
|
|
|
|
|
|
fn main() {}
|