9 use Moose::Util::TypeConstraints;
13 use Moose::Util::TypeConstraints;
15 subtype 'MySubType' => as 'Int' => where { 1 };
19 package Some::Other::Class;
20 use Moose::Util::TypeConstraints;
22 subtype 'MySubType' => as 'Int' => where { 1 };
23 }, qr/cannot be created again/, 'Trying to create same type twice throws' );