]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-with-no-traits.rs
1 #![feature(type_alias_impl_trait)]
2
3 type Foo = impl 'static;
4 //~^ ERROR: at least one trait must be specified
5
6 fn foo() -> Foo {
7     "foo"
8 }
9
10 fn bar() -> impl 'static { //~ ERROR: at least one trait must be specified
11     "foo"
12 }
13
14 fn main() {}