@@ -27,23 +27,34 @@ impl Clone for TestE { fn clone(&self) -> Self { *self } }
27
27
impl Copy for MyType { }
28
28
29
29
impl 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
31
32
impl Clone for MyType { fn clone ( & self ) -> Self { * self } }
32
33
33
34
impl 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
36
40
37
41
impl 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
39
44
40
45
impl 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
43
51
44
52
impl 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
47
58
48
59
fn main ( ) {
49
60
}
0 commit comments