2020-02-01 15:39:50 -06:00
|
|
|
// compile-flags: -Zsave-analysis
|
|
|
|
|
2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-02-01 15:39:50 -06:00
|
|
|
|
|
|
|
trait Trait {}
|
|
|
|
|
|
|
|
trait Service {
|
|
|
|
type Future: Trait;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Struct;
|
|
|
|
|
|
|
|
impl Service for Struct {
|
2022-02-14 10:10:22 -06:00
|
|
|
type Future = impl Trait; //~ ERROR: unconstrained opaque type
|
2020-02-01 15:39:50 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|