Rollup merge of #50505 - Aaronepower:add-test, r=oli-obk
Rollup merge of #50505 - Aaronepower:add-test, r=oli-obk

Added regression function match value test

closes #44333

graydon/rust,aidancully/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,aidancully/rust