diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/consts/issue-68542-closure-in-array-len.stderr (renamed from src/test/ui/consts/issue-68542-closure-in-array-len.stderr) | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/consts/issue-68542-closure-in-array-len.stderr b/tests/ui/consts/issue-68542-closure-in-array-len.stderr index 74fbbc680..d23513ed7 100644 --- a/src/test/ui/consts/issue-68542-closure-in-array-len.stderr +++ b/tests/ui/consts/issue-68542-closure-in-array-len.stderr @@ -6,6 +6,7 @@ LL | a: [(); (|| { 0 })()] | = note: closures need an RFC before allowed to be called in constants = note: calls in constants are limited to constant functions, tuple structs and tuple variants + = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable error: aborting due to previous error |