fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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