Finish renaming Mouse::TypeRegistry to Mouse::Util::TypeConstraints
[gitmo/Mouse.git] / t / 800_shikabased / 009-overwrite-builtin-subtype.t
CommitLineData
d3982c7e 1use strict;
2use warnings;
3use Test::More tests => 1;
4
5eval {
6 package Request;
3b46bd49 7 use Mouse::Util::TypeConstraints;
d3982c7e 8
9 subtype 'Int' => where { 1};
10};
11like $@, qr/The type constraint 'Int' has already been created, cannot be created again in Request/;