summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.rs
blob: 857066c78c9026576b6365faacbda4444f836631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]

// FIXME: this is ruled out for now but should work

type Foo = fn() -> impl Send;
//~^ ERROR: `impl Trait` only allowed in function and inherent method return types

fn make_foo() -> Foo {
    || 15
}

fn main() {}