Closed
Description
#![feature(existential_type)]
existential type Foo: 'static; // ok
fn foo() -> Foo {
"foo"
}
fn bar() -> impl 'static { // error: at least one trait must be specified
"foo"
}
fn main() {}
Although the RFC wasn't explicit about this, it seems that this is an oversight, as existential type
should function like return-position impl Trait
.