use #[entry] instead of entry!

>[breaking-change] the entry!, pre_init! and exception! macros have been replaced with attributes: #[entry], #[pre_init] and #[exception], respectively.

9a4a260398/CHANGELOG.md (v060---2018-09-06)
This commit is contained in:
Roman Frołow
2019-12-30 12:13:33 +01:00
committed by GitHub
parent d16c5af8f7
commit 5810565cf6

View File

@@ -6,7 +6,7 @@ Before we start, let's add some code to debug:
``` rust
// -- snip --
entry!(main);
#[entry]
fn main() -> ! {
let _y;
let x = 42;