error[E0658]: `cfg(doctest)` is experimental and subject to change

Viewed 1179

I am relatively new to rust and I was trying to build a game using an online tutorial when I encountered this error. Can someone please tell me what this error is and how to solve it?

I switched from stable rust version to nightly using rustup default nightly :- rustc 1.46.0-nightly (feb3536eb 2020-06-09). still the error didn't go

These are the dependencies I am trying to install:

piston = "0.50.0"
piston2d-graphics = "0.36.0"
pistoncore-glutin_window = "0.64.0"
piston2d-opengl_graphics = "0.72.0"

Thanks in advance!!

1 Answers

Updating to the latest version of rust using rustup update solves the error

Related