rust/tests/ui/type-alias-impl-trait/declared_but_not_defined_in...

14 lines
256 B
Rust

#![feature(type_alias_impl_trait)]
fn main() {}
mod boo {
// declared in module but not defined inside of it
pub type Boo = impl ::std::fmt::Debug; //~ ERROR unconstrained opaque type
}
fn bomp() -> boo::Boo {
""
//~^ mismatched types
}