2024-04-12 00:23:35 +00:00
|
|
|
error[E0277]: the trait bound `(): Impossible` is not satisfied
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/dont-ice-when-body-tainted-by-errors.rs:17:23
|
2024-04-12 00:23:35 +00:00
|
|
|
|
|
|
|
|
LL | trait_error::<()>();
|
|
|
|
| ^^ the trait `Impossible` is not implemented for `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/dont-ice-when-body-tainted-by-errors.rs:5:1
|
2024-04-12 00:23:35 +00:00
|
|
|
|
|
|
|
|
LL | trait Impossible {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `trait_error`
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/dont-ice-when-body-tainted-by-errors.rs:6:19
|
2024-04-12 00:23:35 +00:00
|
|
|
|
|
|
|
|
LL | fn trait_error<T: Impossible>() {}
|
|
|
|
| ^^^^^^^^^^ required by this bound in `trait_error`
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|