#![feature(never_type)]
#![feature(try_trait_v2)]
#![feature(try_trait_v2_residual)]

use try_v2::{Try, Try_ConvertResult};

#[derive(Try, Try_ConvertResult)]
#[must_use]
enum OutputNamedField<T> {
    Ok{foo: T},
    TestsFailed(T),
    OtherError(String),
}

#[derive(Try, Try_ConvertResult)]
#[must_use]
enum OutputNamedFieldBorrowed<'t, T> {
    Ok{foo: &'t T},
    TestsFailed(T),
    OtherError(String),
}

fn main() {}
