]>
git.proxmox.com Git - rustc.git/blob - tests/codegen/set-discriminant-invalid.rs
1 // compile-flags: -C opt-level=0
6 pub struct TokioError
{
19 impl IntoError
<Error
> for Api
21 type Source
= ApiError
;
22 // CHECK-LABEL: @into_error
24 // Also check the next two instructions to make sure we do not match against `trap`
25 // elsewhere in the code.
29 fn into_error(self, error
: Self::Source
) -> Error
{
36 pub trait IntoError
<E
>
38 /// The underlying error
41 /// Combine the information to produce the error
42 fn into_error(self, source
: Self::Source
) -> E
;