2015-01-01 18:13:57 -06:00
|
|
|
// aux-build:blind-item-mixed-crate-use-item-foo.rs
|
|
|
|
// aux-build:blind-item-mixed-crate-use-item-foo2.rs
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-01 18:13:57 -06:00
|
|
|
mod m {
|
|
|
|
pub fn f<T>(_: T, _: (), _: ()) { }
|
|
|
|
pub fn g<T>(_: T, _: (), _: ()) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
const BAR: () = ();
|
|
|
|
struct Data;
|
|
|
|
use m::f;
|
2015-03-27 12:22:44 -05:00
|
|
|
extern crate blind_item_mixed_crate_use_item_foo as foo;
|
2015-01-01 18:13:57 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
const BAR2: () = ();
|
|
|
|
struct Data2;
|
|
|
|
use m::g;
|
|
|
|
|
2015-03-27 12:22:44 -05:00
|
|
|
extern crate blind_item_mixed_crate_use_item_foo2 as foo2;
|
2015-01-01 18:13:57 -06:00
|
|
|
|
|
|
|
f(Data, BAR, foo::X);
|
|
|
|
g(Data2, BAR2, foo2::Y);
|
|
|
|
}
|