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