]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-impls-sized.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[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:24:1
3    |
4 LL | impl Sized for TestE {} //~ ERROR E0322
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:27:1
9    |
10 LL | impl Sized for MyType {} //~ ERROR E0322
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:30:1
15    |
16 LL | impl Sized for (MyType, MyType) {} //~ ERROR E0322
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:34:1
21    |
22 LL | impl Sized for &'static NotSync {} //~ ERROR E0322
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:37:1
27    |
28 LL | impl Sized for [MyType] {} //~ ERROR E0322
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:41:1
33    |
34 LL | impl Sized for &'static [NotSync] {} //~ ERROR E0322
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:30:1
39    |
40 LL | impl Sized for (MyType, MyType) {} //~ ERROR E0322
41    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
42    |
43    = note: the impl does not reference any types defined in this crate
44    = note: define and implement a trait or new type instead
45
46 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
47   --> $DIR/coherence-impls-sized.rs:37:1
48    |
49 LL | impl Sized for [MyType] {} //~ ERROR E0322
50    | ^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
51    |
52    = note: the impl does not reference any types defined in this crate
53    = note: define and implement a trait or new type instead
54
55 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
56   --> $DIR/coherence-impls-sized.rs:41:1
57    |
58 LL | impl Sized for &'static [NotSync] {} //~ ERROR E0322
59    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
60    |
61    = note: the impl does not reference any types defined in this crate
62    = note: define and implement a trait or new type instead
63
64 error: aborting due to 9 previous errors
65
66 Some errors occurred: E0117, E0322.
67 For more information about an error, try `rustc --explain E0117`.