eval {
package Request;
- use Mouse::TypeRegistry;
+ use Mouse::Util::TypeConstraints;
- subtype 'Int' => where { 1};
+ type 'Int' => where { 1};
};
-like $@, qr/The type constraint 'Int' has already been created, cannot be created again in Request/;
+like $@, qr/The type constraint 'Int' has already been created in Mouse::Util::TypeConstraints and cannot be created again in Request/;