8 eval "use Test::Output;";
9 plan skip_all => "Test::Output is required for this test" if $@;
13 stderr_like( sub { package main; eval 'use Mouse' },
14 qr/\QMouse does not export its sugar to the 'main' package/,
15 'Mouse warns when loaded from the main package' );
17 stderr_like( sub { package main; eval 'use Mouse::Role' },
18 qr/\QMouse::Role does not export its sugar to the 'main' package/,
19 'Mouse::Role warns when loaded from the main package' );