diff options
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs')
-rw-r--r-- | tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs b/tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs new file mode 100644 index 000000000..2c99d8bf1 --- /dev/null +++ b/tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs @@ -0,0 +1,10 @@ +// check-pass + +#![feature(const_trait_impl, const_closures)] +#![allow(incomplete_features)] + +const fn test() -> impl ~const Fn() { + const move || {} +} + +fn main() {} |