module 0x8675309::M { struct S has copy, drop { s: T } fun t(s: signer): S { let x = S { s }; copy x } } // check: COPYLOC_RESOURCE_ERROR