summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/parse_complex_generic_application2.rs
blob: 5ebc94f1f989b88de6b588c232d984b2f89ec516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[lang = "sized"]
pub trait Sized {}

pub enum Either<L, R> {
    Left(L),
    Right(R),
}

pub struct Wrap<T>(T);

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