2020-02-02 06:39:50 +09:00
|
|
|
// compile-flags: -Zsave-analysis
|
|
|
|
|
2021-03-12 10:53:51 +00:00
|
|
|
// revisions: min_tait full_tait
|
|
|
|
#![feature(min_type_alias_impl_trait)]
|
|
|
|
#![cfg_attr(full_tait, 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 {
|
|
|
|
type Future = impl Trait; //~ ERROR: could not find defining uses
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|