You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code runs fine on edition 2015, and has no warnings with #![warn(rust_2018_compatibility)], but fails to compile on edition 2018 (playground):
#![no_implicit_prelude]fnmain(){assert!(true);}
error message:
error: cannot find macro `panic!` in this scope
--> src/main.rs:4:5
|
4 | assert!(true);
| ^^^^^^^^^^^^^^
|
= help: have you added the `#[macro_use]` on the module/import?