rust/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-...

15 lines
243 B
Rust

#![feature(type_alias_impl_trait)]
type Foo = impl 'static;
//~^ ERROR: at least one trait must be specified
fn foo() -> Foo {
"foo"
}
fn bar() -> impl 'static { //~ ERROR: at least one trait must be specified
"foo"
}
fn main() {}