STM32F4 Cube 1.19.0 onwards HAL CAN driver has incorrect documentation.
It would appear that the CAN driver was redesigned in Cube 1.19.0, but the current 'Description of HAL drivers' document (DocID025834 Rev 5 for the F4) describes the old version. They are substantially different.