2019-07-26 21:54:25 +00:00
|
|
|
// run-pass
|
2015-01-02 00:13:57 +00:00
|
|
|
// aux-build:blind-item-mixed-crate-use-item-foo.rs
|
|
|
|
// aux-build:blind-item-mixed-crate-use-item-foo2.rs
|
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-02 00:13:57 +00:00
|
|
|
mod m {
|
|
|
|
pub fn f<T>(_: T, _: (), _: ()) { }
|
|
|
|
pub fn g<T>(_: T, _: (), _: ()) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
const BAR: () = ();
|
|
|
|
struct Data;
|
|
|
|
use m::f;
|
2015-03-27 17:22:44 +00:00
|
|
|
extern crate blind_item_mixed_crate_use_item_foo as foo;
|
2015-01-02 00:13:57 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
const BAR2: () = ();
|
|
|
|
struct Data2;
|
|
|
|
use m::g;
|
|
|
|
|
2015-03-27 17:22:44 +00:00
|
|
|
extern crate blind_item_mixed_crate_use_item_foo2 as foo2;
|
2015-01-02 00:13:57 +00:00
|
|
|
|
|
|
|
f(Data, BAR, foo::X);
|
|
|
|
g(Data2, BAR2, foo2::Y);
|
|
|
|
}
|