rust/tests/ui/coercion/coerce-reborrow-multi-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
161 B
Rust
Raw Normal View History

2020-05-30 13:54:14 -05:00
// 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);
}