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;
10 'Test::Output' => '0.01', # skip all if not installed
18 ::stderr_like{ has foo => (
24 qr/\QYou cannot coerce an attribute (foo) unless its type (Str) has a coercion/,
25 'Cannot coerce unless the type has a coercion';
27 ::stderr_like{ has bar => (
33 qr/\QYou cannot coerce an attribute (bar) unless its type (Str) has a coercion/,
34 'Cannot coerce unless the type has a coercion - different attribute';