]> git.lizzy.rs Git - rust.git/blob - tests/ui/sepcomp/auxiliary/sepcomp_lib.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / sepcomp / auxiliary / sepcomp_lib.rs
1 // compile-flags: -C codegen-units=3 --crate-type=rlib,dylib -g
2
3 pub mod a {
4     pub fn one() -> usize {
5         1
6     }
7 }
8
9 pub mod b {
10     pub fn two() -> usize {
11         2
12     }
13 }
14
15 pub mod c {
16     use a::one;
17     use b::two;
18     pub fn three() -> usize {
19         one() + two()
20     }
21 }