rustc/tests/ui/coercion/coerce-reborrow-multi-arg.rs
2024-06-21 09:39:33 +02:00

10 lines
162 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);
}