Skip to content

Commit 91a093f

Browse files
authored
test(derive_copy): Allow dead code (#1362)
This test uses a trait to assert each message implements `Copy`, therefore non of the messages are actually used.
1 parent 2c22c59 commit 91a093f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/derive_copy.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#![allow(dead_code)]
2+
13
include!(concat!(env!("OUT_DIR"), "/derive_copy.rs"));
24

3-
#[allow(dead_code)]
45
trait TestCopyIsImplemented: Copy {}
56

67
impl TestCopyIsImplemented for EmptyMsg {}

0 commit comments

Comments
 (0)