We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4ae3c commit b021a83Copy full SHA for b021a83
obake/tests/ui/bad_inherits.rs
@@ -1,3 +1,5 @@
1
+#![allow(unused_macros)]
2
+
3
#[obake::versioned]
4
#[obake(version("0.1.0"))]
5
struct Foo {}
obake/tests/ui/bad_inherits.stderr
@@ -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)]
+ | ^^^^^^^
6
7
8
- --> $DIR/bad_inherits.rs:16:17
+ --> $DIR/bad_inherits.rs:18:17
9
|
10
-16 | #[obake(inherit)]
+18 | #[obake(inherit)]
11
| ^^^^^^^
0 commit comments