rust/tests/ui/issues/issue-50761.rs
Lukas Wirth eae7fe1bdb Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 13:35:31 +02:00

23 lines
342 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 (crate::a::A)) {}
}
}
pub use self::b::new;
fn main() {}