Skip to content

Commit 9e33d57

Browse files
committed
Added expected (compile-time) outputs.
* In the case of `derive-same-struct`, it seemed cleaner to add the output than to try to modify the macro itself (which is where the output is coming from). * In the case of `custom-derive-partial-eq`, it was just easier to add the output than to attempt to port the test to use a procedural macro.
1 parent 3a44115 commit 9e33d57

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
warning: `#[derive]` for custom traits is deprecated and will be removed in the future. Prefer using procedural macro custom derive.
2+
--> $DIR/custom-derive-partial-eq.rs:17:10
3+
|
4+
LL | #[derive(CustomPartialEq)] // Check that this is not a stability error.
5+
| ^^^^^^^^^^^^^^^
6+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
input1: "struct A;"

0 commit comments

Comments
 (0)