rustc: Print out region errors involving a function scope properly
testsuite: Tweak tests for #3888