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.
This commit is contained in:
Felix S. Klock II 2018-09-17 11:54:33 +02:00
parent 3a44115a72
commit 9e33d57517
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
warning: `#[derive]` for custom traits is deprecated and will be removed in the future. Prefer using procedural macro custom derive.
--> $DIR/custom-derive-partial-eq.rs:17:10
|
LL | #[derive(CustomPartialEq)] // Check that this is not a stability error.
| ^^^^^^^^^^^^^^^

View File

@ -0,0 +1 @@
input1: "struct A;"