2018-08-19 15:30:23 +02:00
|
|
|
// Confirm that we don't accidentally divide or mod by zero in llvm_type
|
2018-05-16 20:02:01 -07:00
|
|
|
|
2019-10-29 00:00:00 +00:00
|
|
|
// build-pass
|
2018-05-16 20:02:01 -07:00
|
|
|
|
|
|
|
mod a {
|
|
|
|
pub trait A {}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
|
|
|
pub struct Builder {}
|
|
|
|
|
|
|
|
pub fn new() -> Builder {
|
|
|
|
Builder {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Builder {
|
2019-05-28 14:46:13 -04:00
|
|
|
pub fn with_a(&mut self, _a: fn() -> dyn (::a::A)) {}
|
2018-05-16 20:02:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use self::b::new;
|
|
|
|
|
|
|
|
fn main() {}
|