1 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2 --> $DIR/coherence-impls-sized.rs:20:1
4 LL | impl Sized for (MyType, MyType) {}
5 | ^^^^^^^^^^^^^^^----------------
7 | | this is not defined in the current crate because tuples are always foreign
8 | impl doesn't use only types from inside the current crate
10 = note: define and implement a trait or new type instead
12 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
13 --> $DIR/coherence-impls-sized.rs:27:1
15 LL | impl Sized for [MyType] {}
16 | ^^^^^^^^^^^^^^^--------
18 | | this is not defined in the current crate because slices are always foreign
19 | impl doesn't use only types from inside the current crate
21 = note: define and implement a trait or new type instead
23 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
24 --> $DIR/coherence-impls-sized.rs:31:1
26 LL | impl Sized for &'static [NotSync] {}
27 | ^^^^^^^^^^^^^^^------------------
29 | | this is not defined in the current crate because slices are always foreign
30 | impl doesn't use only types from inside the current crate
32 = note: define and implement a trait or new type instead
34 error[E0322]: explicit impls for the `Sized` trait are not permitted
35 --> $DIR/coherence-impls-sized.rs:14:1
37 LL | impl Sized for TestE {}
38 | ^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
40 error[E0322]: explicit impls for the `Sized` trait are not permitted
41 --> $DIR/coherence-impls-sized.rs:17:1
43 LL | impl Sized for MyType {}
44 | ^^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
46 error[E0322]: explicit impls for the `Sized` trait are not permitted
47 --> $DIR/coherence-impls-sized.rs:20:1
49 LL | impl Sized for (MyType, MyType) {}
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
52 error[E0322]: explicit impls for the `Sized` trait are not permitted
53 --> $DIR/coherence-impls-sized.rs:24:1
55 LL | impl Sized for &'static NotSync {}
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
58 error[E0322]: explicit impls for the `Sized` trait are not permitted
59 --> $DIR/coherence-impls-sized.rs:27:1
61 LL | impl Sized for [MyType] {}
62 | ^^^^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
64 error[E0322]: explicit impls for the `Sized` trait are not permitted
65 --> $DIR/coherence-impls-sized.rs:31:1
67 LL | impl Sized for &'static [NotSync] {}
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl of 'Sized' not allowed
70 error: aborting due to 9 previous errors
72 Some errors have detailed explanations: E0117, E0322.
73 For more information about an error, try `rustc --explain E0117`.