1 // Test that we do not leak when the arg pattern must drop part of the
2 // argument (in this case, the `y` field).
9 fn foo(Foo {x, _}: Foo) -> *uint {
10 let addr: *uint = &*x;
16 let objptr: *uint = &*obj;
17 let f = Foo {x: obj, y: ~2};
19 assert_eq!(objptr, xptr);