7 'Test::Output' => '0.01',
23 ::stderr_like{ has foo => (
29 qr/\QAllowing a native trait to automatically supply a default is deprecated/,
30 'Not providing a default for native String trait warns';
32 ::stderr_like{ has bar => (
38 qr/\QAllowing a native trait to automatically supply a value for "is" is deprecated/,
39 'Not providing a value for is with native String trait warns';
41 ::stderr_like{ with 'Role' =>
42 { excludes => ['thing'], alias => { thing => 'thing2' } };
44 qr/\QThe alias and excludes options for role application have been renamed -alias and -excludes/,
45 'passing excludes or alias with a leading dash warns';
47 !Foo->meta->has_method('thing'),
48 'thing method is excluded from role application'
51 Foo->meta->has_method('thing2'),
52 'thing2 method is created as alias in role application'