@@ -27,23 +27,34 @@ impl Clone for TestE { fn clone(&self) -> Self { *self } }
2727impl Copy for MyType { }
2828
2929impl Copy for & ' static mut MyType { }
30- //~^ ERROR E0206
30+ //~^ ERROR the trait `Copy` may not be implemented for this type
31+ //~| NOTE type is not a structure or enumeration
3132impl Clone for MyType { fn clone ( & self ) -> Self { * self } }
3233
3334impl Copy for ( MyType , MyType ) { }
34- //~^ ERROR E0206
35- //~| ERROR E0117
35+ //~^ ERROR the trait `Copy` may not be implemented for this type
36+ //~| NOTE type is not a structure or enumeration
37+ //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
38+ //~| NOTE impl doesn't use types inside crate
39+ //~| NOTE the impl does not reference any types defined in this crate
3640
3741impl Copy for & ' static NotSync { }
38- //~^ ERROR E0206
42+ //~^ ERROR the trait `Copy` may not be implemented for this type
43+ //~| NOTE type is not a structure or enumeration
3944
4045impl Copy for [ MyType ] { }
41- //~^ ERROR E0206
42- //~| ERROR E0117
46+ //~^ ERROR the trait `Copy` may not be implemented for this type
47+ //~| NOTE type is not a structure or enumeration
48+ //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
49+ //~| NOTE impl doesn't use types inside crate
50+ //~| NOTE the impl does not reference any types defined in this crate
4351
4452impl Copy for & ' static [ NotSync ] { }
45- //~^ ERROR E0206
46- //~| ERROR E0117
53+ //~^ ERROR the trait `Copy` may not be implemented for this type
54+ //~| NOTE type is not a structure or enumeration
55+ //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
56+ //~| NOTE impl doesn't use types inside crate
57+ //~| NOTE the impl does not reference any types defined in this crate
4758
4859fn main ( ) {
4960}
0 commit comments