]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr
Rollup merge of #100006 - jyn514:update-copy, r=dtolnay
[rust.git] / src / test / ui / coercion / coerce-issue-49593-box-never-windows.nofallback.stderr
1 error[E0277]: the trait bound `(): std::error::Error` is not satisfied
2   --> $DIR/coerce-issue-49593-box-never-windows.rs:18:53
3    |
4 LL |     /* *mut $0 is coerced to Box<dyn Error> here */ Box::<_ /* ! */>::new(x)
5    |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
6    |
7    = note: required for the cast from `()` to the object type `dyn std::error::Error`
8
9 error[E0277]: the trait bound `(): std::error::Error` is not satisfied
10   --> $DIR/coerce-issue-49593-box-never-windows.rs:23:49
11    |
12 LL |     /* *mut $0 is coerced to *mut Error here */ raw_ptr_box::<_ /* ! */>(x)
13    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `()`
14    |
15    = note: required for the cast from `()` to the object type `(dyn std::error::Error + 'static)`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0277`.