mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
20 lines
245 B
Rust
20 lines
245 B
Rust
//@ run-pass
|
|
|
|
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);
|
|
}
|