Fix syntax error

'traits' should be used instead of 'trait' in Moose