rust-libc-print icon indicating copy to clipboard operation
rust-libc-print copied to clipboard

Fix "warning: attribute should be applied to an `extern` block"

Open mmastrac opened this issue 3 years ago • 1 comments

See message in #70

mmastrac avatar Jul 28 '22 16:07 mmastrac

warning: attribute should be applied to an `extern` block
  --> src/lib.rs:24:1
   |
24 |   #[link(name = "c")]
   |   ^^^^^^^^^^^^^^^^^^^
25 | / mod c {
26 | |     extern "C" {}
27 | | }
   | |_- not an `extern` block
   |
   = note: `#[warn(unused_attributes)]` on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

mmastrac avatar Jul 28 '22 16:07 mmastrac