summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coercion/coerce-reborrow-multi-arg.rs
blob: 93cd0bb3e27f6df5cf066ee41e23e866cdbc4d1b (plain)
1
2
3
4
5
6
7
8
9
// 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);
}