2021-09-17 08:59:50 -05:00
|
|
|
error[E0277]: the trait bound `(): std::error::Error` is not satisfied
|
2022-04-19 16:47:33 -05:00
|
|
|
--> $DIR/coerce-issue-49593-box-never.rs:18:53
|
2021-09-17 08:59:50 -05:00
|
|
|
|
|
|
|
|
LL | /* *mut $0 is coerced to Box<dyn Error> here */ Box::<_ /* ! */>::new(x)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
|
|
|
|
|
|
2022-06-19 23:04:06 -05:00
|
|
|
= note: required for the cast from `()` to the object type `dyn std::error::Error`
|
2021-09-17 08:59:50 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): std::error::Error` is not satisfied
|
2022-04-19 16:47:33 -05:00
|
|
|
--> $DIR/coerce-issue-49593-box-never.rs:23:49
|
2021-09-17 08:59:50 -05:00
|
|
|
|
|
|
|
|
LL | /* *mut $0 is coerced to *mut Error here */ raw_ptr_box::<_ /* ! */>(x)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
|
|
|
|
|
|
2022-06-19 23:04:06 -05:00
|
|
|
= note: required for the cast from `()` to the object type `(dyn std::error::Error + 'static)`
|
2021-09-17 08:59:50 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|