ForwardDiff.jl does not throw an error even when I try to put in a function outputting an array to calculate the Hessian

Hi, welcome to discourse!
indeed, weird behaviour, i can reproduce on julia 1.5.1