Suggest to add missing feature when using gated const features

This commit is contained in:
mibac138 2020-05-04 23:33:10 +02:00
parent d626e4dadc
commit 73867365a8
15 changed files with 70 additions and 0 deletions

View file

@ -9,6 +9,8 @@ error[E0019]: static contains unimplemented expression type
|
LL | static boxed: Box<RefCell<isize>> = box RefCell::new(0);
| ^^^^^^^^^^^^^^^
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
error[E0277]: `std::cell::RefCell<isize>` cannot be shared between threads safely
--> $DIR/issue-7364.rs:6:1