fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1014 B19 linesraw
1error[E0277]: the trait bound `(): std::error::Error` is not satisfied
2  --> $DIR/coerce-issue-49593-box-never-windows.rs:18:53
3   |
4LL |     /* *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 `Box<()>` to `Box<(dyn std::error::Error + 'static)>`
8
9error[E0277]: the trait bound `(): std::error::Error` is not satisfied
10  --> $DIR/coerce-issue-49593-box-never-windows.rs:23:49
11   |
12LL |     /* *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 `*mut ()` to `*mut (dyn std::error::Error + 'static)`
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0277`.