We need to say new -> _new? what's the better way of doing this?
[gitmo/Moose.git] / t / 040_type_constraints / 032_throw_error.t
CommitLineData
6ea98933 1use strict;
2use warnings;
3
4use Test::More tests => 1;
5
6use Moose::Util::TypeConstraints;
7
8
9eval { Moose::Util::TypeConstraints::create_type_constraint_union() };
10
11like( $@, qr/\QYou must pass in at least 2 type names to make a union/,
12 'can throw a proper error without Moose being loaded by the caller' );