mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
21 lines
278 B
Rust
21 lines
278 B
Rust
//@ run-pass
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
mod m {
|
|
pub fn f<T>(_: T, _: ()) { }
|
|
pub fn g<T>(_: T, _: ()) { }
|
|
}
|
|
|
|
const BAR: () = ();
|
|
struct Data;
|
|
use m::f;
|
|
|
|
fn main() {
|
|
const BAR2: () = ();
|
|
struct Data2;
|
|
use m::g;
|
|
|
|
f(Data, BAR);
|
|
g(Data2, BAR2);
|
|
}
|