blob: 46b10104904349850fc84d2163c5d7306ffcfda0 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
pub enum Either<T, E> {
Left(T),
Right(E),
}
pub mod err {
pub struct Error;
pub struct ErrorWrap<T>(T);
}
pub fn foo_err() -> Either<(), err::Error> {
Either::Left(())
}
pub fn foo_err_wrap() -> Either<(), err::ErrorWrap<u8>> {
Either::Left(())
}