@@ -26,26 +26,38 @@ LL | default unsafe impl Send for S {}
2626 | |
2727 | default because of this
2828
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+
2940error: impls of auto traits cannot be default
30- --> $DIR/validation.rs:10 :15
41+ --> $DIR/validation.rs:11 :15
3142 |
3243LL | default impl !Send for Z {}
3344 | ------- ^^^^ auto trait
3445 | |
3546 | default because of this
3647
3748error[E0750]: negative impls cannot be default impls
38- --> $DIR/validation.rs:10 :1
49+ --> $DIR/validation.rs:11 :1
3950 |
4051LL | default impl !Send for Z {}
4152 | ^^^^^^^ ^
4253
4354error[E0750]: negative impls cannot be default impls
44- --> $DIR/validation.rs:14 :1
55+ --> $DIR/validation.rs:15 :1
4556 |
4657LL | default impl !Tr for S {}
4758 | ^^^^^^^ ^
4859
49- error: aborting due to 5 previous errors; 1 warning emitted
60+ error: aborting due to 6 previous errors; 1 warning emitted
5061
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