fix: disallow #[test]
on associated functions
#6449
Merged
#[test]
on associated functions
#6449