]>
git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/borrowck-anon-fields-struct.rs
1 // Tests that we are able to distinguish when loans borrow different
2 // anonymous fields of a tuple vs the same anonymous field.
4 struct Y(usize, usize);
6 fn distinct_variant() {
29 Y(ref mut b
, _
) => b
//~ ERROR cannot borrow