6 use Test::More tests => 2;
9 stderr_is( sub { package main; eval 'use Moose' },
10 "Moose does not export its sugar to the 'main' package.\n",
11 'Moose warns when loaded from the main package' );
13 stderr_is( sub { package main; eval 'use Moose::Role' },
14 "Moose::Role does not export its sugar to the 'main' package.\n",
15 'Moose::Role warns when loaded from the main package' );