aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug] Type checker allow borrow of tuple as function return type signature

Open JakeSilverman opened this issue 6 months ago • 0 comments
trafficstars

🐛 Bug

Internal move compiler error caused by below snipped

To reproduce

fun ret_borrow_tup(): &(u64, u64) {
    abort 0
}

Expected Behavior

This should result in a compiler error that is caught gracefully.

System information

Please complete the following information:

  • Aptos Core Version: 7.3.0
  • Rust Version: 1.87.0
  • Computer OS: Mac OS 15.5

Additional context

Add any other context about the problem here.

JakeSilverman avatar May 20 '25 22:05 JakeSilverman