diff options
Diffstat (limited to 'tests/ui/consts/const-blocks/fn-call-in-non-const.stderr')
| -rw-r--r-- | tests/ui/consts/const-blocks/fn-call-in-non-const.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/consts/const-blocks/fn-call-in-non-const.stderr b/tests/ui/consts/const-blocks/fn-call-in-non-const.stderr index 272c2f045e1..a3d5054ced3 100644 --- a/tests/ui/consts/const-blocks/fn-call-in-non-const.stderr +++ b/tests/ui/consts/const-blocks/fn-call-in-non-const.stderr @@ -13,8 +13,9 @@ LL | struct Bar; | help: create an inline `const` block | -LL | let _: [Option<Bar>; 2] = [const { no_copy() }; 2]; - | ~~~~~~~~~~~~~~~~~~~ +LL - let _: [Option<Bar>; 2] = [no_copy(); 2]; +LL + let _: [Option<Bar>; 2] = [const { no_copy() }; 2]; + | error: aborting due to 1 previous error |
