2021-09-17 08:59:50 -05:00
|
|
|
error[E0277]: the trait bound `(): std::error::Error` is not satisfied
|
|
|
|
--> $DIR/coerce-issue-49593-box-never.rs:17:53
|
|
|
|
|
|
|
|
|
LL | /* *mut $0 is coerced to Box<dyn Error> here */ Box::<_ /* ! */>::new(x)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
|
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the following other types implement trait `std::error::Error`:
|
|
|
|
!
|
|
|
|
&'a T
|
|
|
|
AccessError
|
|
|
|
AddrParseError
|
|
|
|
Arc<T>
|
|
|
|
BorrowError
|
|
|
|
BorrowMutError
|
|
|
|
Box<T>
|
2022-04-18 19:32:25 -05:00
|
|
|
and 43 others
|
2021-09-17 08:59:50 -05:00
|
|
|
= note: required for the cast to the object type `dyn std::error::Error`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): std::error::Error` is not satisfied
|
|
|
|
--> $DIR/coerce-issue-49593-box-never.rs:22:49
|
|
|
|
|
|
|
|
|
LL | /* *mut $0 is coerced to *mut Error here */ raw_ptr_box::<_ /* ! */>(x)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
|
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the following other types implement trait `std::error::Error`:
|
|
|
|
!
|
|
|
|
&'a T
|
|
|
|
AccessError
|
|
|
|
AddrParseError
|
|
|
|
Arc<T>
|
|
|
|
BorrowError
|
|
|
|
BorrowMutError
|
|
|
|
Box<T>
|
2022-04-18 19:32:25 -05:00
|
|
|
and 43 others
|
2021-09-17 08:59:50 -05:00
|
|
|
= note: required for the cast to the object type `(dyn std::error::Error + 'static)`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|