summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/parse_complex_generic_application2.rs
blob: 0361931c50c0b0b40234c5becf63fe78b6fb2814 (plain)
1
2
3
4
5
6
7
8
9
10
pub enum Either<L, R> {
    Left(L),
    Right(R),
}

pub struct Wrap<T>(T);

pub fn foo_wrap() -> Either<(), Wrap<u8>> {
    Either::Left(())
}