Skip to content

Commit

Permalink
Ignore dead_code warning in test
Browse files Browse the repository at this point in the history
    warning: trait `IsNotImplemented` is never used
      --> tests/marker.rs:24:27
       |
    24 |                     trait IsNotImplemented {
       |                           ^^^^^^^^^^^^^^^^
    ...
    47 | assert_impl!(Group is not Send or Sync);
       | --------------------------------------- in this macro invocation
       |
       = note: `#[warn(dead_code)]` on by default
       = note: this warning originates in the macro `assert_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
  • Loading branch information
dtolnay committed Feb 8, 2024
1 parent 5cd21eb commit 18c75c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ macro_rules! assert_impl {
$(
{
// Implemented for types that implement $marker.
#[allow(dead_code)]
trait IsNotImplemented {
fn assert_not_implemented() {}
}
Expand Down

0 comments on commit 18c75c6

Please sign in to comment.