blob: 9796823a724407b7c26a6dab738b036b9a75f370 [file] [log] [blame]
#![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 argument and return types
fn make_foo() -> Foo {
|| 15
}
fn main() {}