package MyApp::Role;
use Moose::Role;
use MooseX::Role::AttributeOverride;

has_plus 'fun' => (
    default                 => 'yep',
    override_ignore_missing => 0,
);

package MyApp;
use Moose;

has 'notfun' => (
    is  => 'rw',
    isa => 'Str'
);

package main;
use Moose::Util;

use Test::More tests => 1;    # last test to print

eval {
    Moose::Util::apply_all_roles( 'MyApp', 'MyApp::Role' );
    my $test = MyApp->new();
};
my $error = $@;

ok( $error =~ /Can't find attribute/, 'Missing Attribute dies' );

