Skip to content

Commit 3de450b

Browse files
authored
Rollup merge of #63379 - jackh726:issue-53096, r=Centril,oli-obk
Add test for issue 53096 Closes #53096 r? @oli-obk
2 parents bba6dda + 25a2cf6 commit 3de450b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/test/ui/type-alias-impl-trait/issue-53096.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
#![feature(const_fn)]
3+
#![feature(type_alias_impl_trait)]
4+
5+
type Foo = impl Fn() -> usize;
6+
const fn bar() -> Foo { || 0usize }
7+
const BAZR: Foo = bar();
8+
9+
fn main() {}

0 commit comments

Comments
 (0)