blob: 142f2f6d75169773982929437fbc2dab9acc590c [file] [log] [blame]
#![feature(existential_type)]
fn main() {}
mod boo {
pub existential type Boo: ::std::fmt::Debug;
fn bomp() -> Boo {
""
}
}
// don't actually know the type here
fn bomp2() {
let _: &str = bomp(); //~ ERROR mismatched types
}
fn bomp() -> boo::Boo {
"" //~ ERROR mismatched types
}
fn bomp_loop() -> boo::Boo {
loop {}
}