Skip to content

Commit b021a83

Browse files
committed
Repair test
1 parent 8b4ae3c commit b021a83

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

obake/tests/ui/bad_inherits.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused_macros)]
2+
13
#[obake::versioned]
24
#[obake(version("0.1.0"))]
35
struct Foo {}

obake/tests/ui/bad_inherits.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: `#[obake(inherit)]` can only be applied to fields with `#[obake::versioned]` types
2-
--> $DIR/bad_inherits.rs:8:13
3-
|
4-
8 | #[obake(inherit)]
5-
| ^^^^^^^
2+
--> $DIR/bad_inherits.rs:10:13
3+
|
4+
10 | #[obake(inherit)]
5+
| ^^^^^^^
66

77
error: `#[obake(inherit)]` can only be applied to fields with `#[obake::versioned]` types
8-
--> $DIR/bad_inherits.rs:16:17
8+
--> $DIR/bad_inherits.rs:18:17
99
|
10-
16 | #[obake(inherit)]
10+
18 | #[obake(inherit)]
1111
| ^^^^^^^

0 commit comments

Comments
 (0)