10 use_ok('Moose::Util::TypeConstraints');
15 use Moose::Util::TypeConstraints;
17 subtype 'MySubType' => as 'Int' => where { 1 };
21 package Some::Other::Class;
22 use Moose::Util::TypeConstraints;
24 subtype 'MySubType' => as 'Int' => where { 1 };
25 }, qr/cannot be created again/, 'Trying to create same type twice throws' );