mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
18 lines
255 B
Rust
18 lines
255 B
Rust
// 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() {}
|