summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-50761.rs
blob: 1bf494ba8f97ed2a6cdc78066c1f8845ff3c59da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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() {}