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
|
|
|
|
2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2018-05-16 22:02:01 -05:00
|
|
|
|
|
|
|
mod a {
|
|
|
|
pub trait A {}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
|
|
|
pub struct Builder {}
|
|
|
|
|
|
|
|
pub fn new() -> Builder {
|
|
|
|
Builder {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Builder {
|
2019-05-28 13:46:13 -05:00
|
|
|
pub fn with_a(&mut self, _a: fn() -> dyn (::a::A)) {}
|
2018-05-16 22:02:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use self::b::new;
|
|
|
|
|
|
|
|
fn main() {}
|