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