1
Fork 0

Rollup merge of #63379 - jackh726:issue-53096, r=Centril,oli-obk

Add test for issue 53096

Closes #53096

r? @oli-obk
This commit is contained in:
Mazdak Farrokhzad 2019-08-08 16:33:44 +02:00 committed by GitHub
commit 3de450b686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,9 @@
// check-pass
#![feature(const_fn)]
#![feature(type_alias_impl_trait)]
type Foo = impl Fn() -> usize;
const fn bar() -> Foo { || 0usize }
const BAZR: Foo = bar();
fn main() {}