mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
10 lines
161 B
Rust
10 lines
161 B
Rust
// build-pass
|
|
fn test<T>(_a: T, _b: T) {}
|
|
|
|
fn main() {
|
|
test(&7, &7);
|
|
test(&7, &mut 7);
|
|
test::<&i32>(&mut 7, &7);
|
|
test::<&i32>(&mut 7, &mut 7);
|
|
}
|