mmastrac / rust-libc-print

#[no_std] print equivalent for Rust
Apache License 2.0
60 stars 10 forks source link

"attributes on expressions are experimental" when not used as a statement #86

Closed nickmertin closed 1 year ago

nickmertin commented 1 year ago

Offending excerpt from my code:

use libc_print::std_name::*;

// ...

foo().unwrap_or_else(|err| eprintln!("error: {:?}", err));

My best guess is that there needs to be some added block level and/or semicolon to get the macro call to compile in all cases without needing #![feature(stmt_expr_attributes)].

mmastrac commented 1 year ago

Published in v0.1.21