Skip to content

Commit 18c75c6

Browse files
committed
Ignore dead_code warning in test
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)
1 parent 5cd21eb commit 18c75c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/marker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ macro_rules! assert_impl {
2121
$(
2222
{
2323
// Implemented for types that implement $marker.
24+
#[allow(dead_code)]
2425
trait IsNotImplemented {
2526
fn assert_not_implemented() {}
2627
}

0 commit comments

Comments
 (0)