auto_enums 0.8.10

A library for to allow multiple return types by automatically generated enum.
Documentation
// SPDX-License-Identifier: Apache-2.0 OR MIT

use auto_enums::enum_derive;

#[enum_derive(Clone, =>)] //~ ERROR expected identifier
enum Enum1<A, B> {
    A(A),
    B(B),
}

#[enum_derive(foo::bar::!)] //~ ERROR expected identifier
enum Enum2<A, B> {
    A(A),
    B(B),
}

#[enum_derive(Clone, Foo:)] //~ ERROR expected `,`
enum Enum3<A, B> {
    A(A),
    B(B),
}

#[enum_derive(Clone Foo)] //~ ERROR expected `,`
enum Enum4<A, B> {
    A(A),
    B(B),
}

#[enum_derive(Into)] //~ ERROR missing Into generic argument
enum Enum5<A, B> {
    A(A),
    B(B),
}
#[enum_derive(Into<i32, f64>)] //~ ERROR too many Into generic arguments
enum Enum6<A, B> {
    A(A),
    B(B),
}

fn main() {}