]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/blind-item-mixed-crate-use-item.rs
Rollup merge of #58306 - GuillaumeGomez:crate-browser-history, r=QuietMisdreavus
[rust.git] / src / test / run-pass / blind-item-mixed-crate-use-item.rs
1 // aux-build:blind-item-mixed-crate-use-item-foo.rs
2 // aux-build:blind-item-mixed-crate-use-item-foo2.rs
3
4 // pretty-expanded FIXME #23616
5
6 mod m {
7     pub fn f<T>(_: T, _: (), _: ()) { }
8     pub fn g<T>(_: T, _: (), _: ()) { }
9 }
10
11 const BAR: () = ();
12 struct Data;
13 use m::f;
14 extern crate blind_item_mixed_crate_use_item_foo as foo;
15
16 fn main() {
17     const BAR2: () = ();
18     struct Data2;
19     use m::g;
20
21     extern crate blind_item_mixed_crate_use_item_foo2 as foo2;
22
23     f(Data, BAR, foo::X);
24     g(Data2, BAR2, foo2::Y);
25 }