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