Debian Codegraph @

gcc/testsuite/rust/compile/parse_complex_generic_application.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 pub enum Either<T, E> {
5 Left(T),
6 Right(E),
7 }
8
9 pub mod err {
10 pub struct Error;
11 pub struct ErrorWrap<T>(T);
12 }
13
14 pub fn foo_err() -> Either<(), err::Error> {
15 Either::Left(())
16 }
17
18 pub fn foo_err_wrap() -> Either<(), err::ErrorWrap<u8>> {
19 Either::Left(())
20 }