2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
13 use_ok('Mouse::Util::TypeConstraints');
18 use Mouse::Util::TypeConstraints;
20 subtype 'MySubType' => as 'Int' => where { 1 };
24 package Some::Other::Class;
25 use Mouse::Util::TypeConstraints;
27 subtype 'MySubType' => as 'Int' => where { 1 };
28 } qr/cannot be created again/, 'Trying to create same type twice throws';