@@ -26,26 +26,38 @@ LL | default unsafe impl Send for S {}
26
26
| |
27
27
| default because of this
28
28
29
+ error[E0277]: `S` cannot be sent between threads safely
30
+ --> $DIR/validation.rs:9:1
31
+ |
32
+ LL | default unsafe impl Send for S {}
33
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `S` cannot be sent between threads safely
34
+ |
35
+ = help: the trait `Send` is not implemented for `S`
36
+ = help: the trait `Send` is implemented for `S`
37
+ = help: see issue #48214
38
+ = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
39
+
29
40
error: impls of auto traits cannot be default
30
- --> $DIR/validation.rs:10 :15
41
+ --> $DIR/validation.rs:11 :15
31
42
|
32
43
LL | default impl !Send for Z {}
33
44
| ------- ^^^^ auto trait
34
45
| |
35
46
| default because of this
36
47
37
48
error[E0750]: negative impls cannot be default impls
38
- --> $DIR/validation.rs:10 :1
49
+ --> $DIR/validation.rs:11 :1
39
50
|
40
51
LL | default impl !Send for Z {}
41
52
| ^^^^^^^ ^
42
53
43
54
error[E0750]: negative impls cannot be default impls
44
- --> $DIR/validation.rs:14 :1
55
+ --> $DIR/validation.rs:15 :1
45
56
|
46
57
LL | default impl !Tr for S {}
47
58
| ^^^^^^^ ^
48
59
49
- error: aborting due to 5 previous errors; 1 warning emitted
60
+ error: aborting due to 6 previous errors; 1 warning emitted
50
61
51
- For more information about this error, try `rustc --explain E0750`.
62
+ Some errors have detailed explanations: E0277, E0750.
63
+ For more information about an error, try `rustc --explain E0277`.
0 commit comments