@@ -20,8 +20,8 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
2020note: function defined here
2121 --> tests/compile_fail/partial_eq/unknown_with_function.rs:4:4
2222 |
23- 4 | fn incompatible_types(a:& str) ->i32 {0}
24- | ^^^^^^^^^^^^^^^^^^ -------
23+ 4 | fn incompatible_types(_a: & str) ->i32 {0}
24+ | ^^^^^^^^^^^^^^^^^^ --------
2525
2626error[E0308]: mismatched types
2727 --> tests/compile_fail/partial_eq/unknown_with_function.rs:6:10
@@ -35,46 +35,38 @@ error[E0308]: mismatched types
3535 = note: this error originates in the derive macro `derive_more::PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
3636
3737error[E0425]: cannot find function `unknown` in this scope
38- --> tests/compile_fail/partial_eq/unknown_with_function.rs:12 :29
38+ --> tests/compile_fail/partial_eq/unknown_with_function.rs:11 :29
3939 |
40- 12 | Bar { #[partial_eq(with(unknown))] i: i32 },
40+ 11 | Bar { #[partial_eq(with(unknown))] i: i32 },
4141 | ^^^^^^^ not found in this scope
4242
4343error[E0061]: this function takes 1 argument but 2 arguments were supplied
44- --> tests/compile_fail/partial_eq/unknown_with_function.rs:13 :29
44+ --> tests/compile_fail/partial_eq/unknown_with_function.rs:12 :29
4545 |
46- 10 | #[derive(derive_more::PartialEq)]
46+ 9 | #[derive(derive_more::PartialEq)]
4747 | ----------------------
4848 | |
4949 | expected `&str`, found `&i32`
5050 | unexpected argument #2 of type `&i32`
5151...
52- 13 | Baz { #[partial_eq(with(incompatible_types))] i: i32 },
52+ 12 | Baz { #[partial_eq(with(incompatible_types))] i: i32 },
5353 | ^^^^^^^^^^^^^^^^^^
5454 |
5555 = note: expected reference `&str`
5656 found reference `&i32`
5757note: function defined here
5858 --> tests/compile_fail/partial_eq/unknown_with_function.rs:4:4
5959 |
60- 4 | fn incompatible_types(a:& str) ->i32 {0}
61- | ^^^^^^^^^^^^^^^^^^ -------
60+ 4 | fn incompatible_types(_a: & str) ->i32 {0}
61+ | ^^^^^^^^^^^^^^^^^^ --------
6262
6363error[E0308]: mismatched types
64- --> tests/compile_fail/partial_eq/unknown_with_function.rs:10:10
65- |
66- 10 | #[derive(derive_more::PartialEq)]
67- | ^^^^^^^^^^^^^^^^^^^^^^
68- | |
69- | expected `bool`, found `i32`
70- | expected `bool` because of return type
71- |
72- = note: this error originates in the derive macro `derive_more::PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
73-
74- warning: unused variable: `a`
75- --> tests/compile_fail/partial_eq/unknown_with_function.rs:4:23
64+ --> tests/compile_fail/partial_eq/unknown_with_function.rs:9:10
7665 |
77- 4 | fn incompatible_types(a:& str) ->i32 {0}
78- | ^ help: if this is intentional, prefix it with an underscore: `_a`
66+ 9 | #[derive(derive_more::PartialEq)]
67+ | ^^^^^^^^^^^^^^^^^^^^^^
68+ | |
69+ | expected `bool`, found `i32`
70+ | expected `bool` because of return type
7971 |
80- = note: `#[warn(unused_variables)] ` (part of `#[warn(unused)]`) on by default
72+ = note: this error originates in the derive macro `derive_more::PartialEq ` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments