blob: 30479580f11a3c0122291b0020d1738bf15406f4 [file] [log] [blame]
// compile-flags: -Zsave-analysis
#![feature(type_alias_impl_trait)]
trait Trait {}
trait Service {
type Future: Trait;
}
struct Struct;
impl Service for Struct {
type Future = impl Trait; //~ ERROR: unconstrained opaque type
}
fn main() {}