Skip to content

Commit

Permalink
Repair test
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorn committed Apr 20, 2023
1 parent 8b4ae3c commit b021a83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions obake/tests/ui/bad_inherits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_macros)]

#[obake::versioned]
#[obake(version("0.1.0"))]
struct Foo {}
Expand Down
12 changes: 6 additions & 6 deletions obake/tests/ui/bad_inherits.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: `#[obake(inherit)]` can only be applied to fields with `#[obake::versioned]` types
--> $DIR/bad_inherits.rs:8:13
|
8 | #[obake(inherit)]
| ^^^^^^^
--> $DIR/bad_inherits.rs:10:13
|
10 | #[obake(inherit)]
| ^^^^^^^

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

0 comments on commit b021a83

Please sign in to comment.