mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
24 lines
337 B
Rust
24 lines
337 B
Rust
// 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() {}
|