Could you provide the full example? Something which imports all the relevant traits/functions/types would be very useful to see.