diff options
Diffstat (limited to 'tests/ui/coercion/coerce-reborrow-multi-arg.rs')
-rw-r--r-- | tests/ui/coercion/coerce-reborrow-multi-arg.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/coercion/coerce-reborrow-multi-arg.rs b/tests/ui/coercion/coerce-reborrow-multi-arg.rs new file mode 100644 index 000000000..93cd0bb3e --- /dev/null +++ b/tests/ui/coercion/coerce-reborrow-multi-arg.rs @@ -0,0 +1,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); +} |