From 73867365a8dbeb5a2ad8c2de61b4f74faeb34ece Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Mon, 4 May 2020 23:33:10 +0200 Subject: Suggest to add missing feature when using gated const features --- src/test/ui/static/static-mut-not-constant.stderr | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/ui/static') diff --git a/src/test/ui/static/static-mut-not-constant.stderr b/src/test/ui/static/static-mut-not-constant.stderr index 3560be0e29e..a618b49d108 100644 --- a/src/test/ui/static/static-mut-not-constant.stderr +++ b/src/test/ui/static/static-mut-not-constant.stderr @@ -9,6 +9,8 @@ error[E0019]: static contains unimplemented expression type | LL | static mut a: Box = box 3; | ^ + | + = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable error: aborting due to 2 previous errors -- cgit 1.4.1-3-g733a5