diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/call.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/call.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/call.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/call.rs new file mode 100644 index 000000000..5f48c2353 --- /dev/null +++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/call.rs @@ -0,0 +1,10 @@ +// check-pass + +#![feature(const_closures, const_trait_impl)] +#![allow(incomplete_features)] + +pub const _: () = { + assert!((const || true)()); +}; + +fn main() {} |