You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: no traits found to implement, use `#[derive_where(..)` to specify some
36
-
--> tests/ui/item.rs:21:1
42
+
--> tests/ui/item.rs:28:1
37
43
|
38
-
21 | struct OnlyCrate<T>(PhantomData<T>);
44
+
28 | struct OnlyCrate<T>(PhantomData<T>);
39
45
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
46
41
47
error: unnecessary path qualification, `::derive_where` is used by default
42
-
--> tests/ui/item.rs:23:24
48
+
--> tests/ui/item.rs:30:24
43
49
|
44
-
23 | #[derive_where(crate = "::derive_where")]
50
+
30 | #[derive_where(crate = "::derive_where")]
45
51
| ^^^^^^^^^^^^^^^^
46
52
47
53
error: expected `,`
48
-
--> tests/ui/item.rs:26:24
54
+
--> tests/ui/item.rs:33:24
49
55
|
50
-
26 | #[derive_where(Clone; T;)]
56
+
33 | #[derive_where(Clone; T;)]
51
57
| ^
52
58
53
59
error: expected type to bind to, expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
54
-
--> tests/ui/item.rs:29:25
60
+
--> tests/ui/item.rs:36:25
55
61
|
56
-
29 | #[derive_where(Clone; T,,)]
62
+
36 | #[derive_where(Clone; T,,)]
57
63
| ^
58
64
59
65
error: expected type to bind to, expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
60
-
--> tests/ui/item.rs:32:23
66
+
--> tests/ui/item.rs:39:23
61
67
|
62
-
32 | #[derive_where(Clone; where)]
68
+
39 | #[derive_where(Clone; where)]
63
69
| ^^^^^
64
70
65
71
error: expected `;` or `,
66
-
--> tests/ui/item.rs:35:22
72
+
--> tests/ui/item.rs:42:22
67
73
|
68
-
35 | #[derive_where(Clone Debug)]
74
+
42 | #[derive_where(Clone Debug)]
69
75
| ^^^^^
70
76
71
77
error: expected `,`
72
-
--> tests/ui/item.rs:38:25
78
+
--> tests/ui/item.rs:45:25
73
79
|
74
-
38 | #[derive_where(Clone; T U)]
80
+
45 | #[derive_where(Clone; T U)]
75
81
| ^
76
82
77
83
error: unexpected option syntax
78
-
--> tests/ui/item.rs:41:16
84
+
--> tests/ui/item.rs:48:16
79
85
|
80
-
41 | #[derive_where("Clone")]
86
+
48 | #[derive_where("Clone")]
81
87
| ^^^^^^^
82
88
83
89
error: `#[derive_where(..)` was already applied to this item before, this occurs when using a qualified path for any `#[derive_where(..)`s except the first
84
-
--> tests/ui/item.rs:44:1
90
+
--> tests/ui/item.rs:51:1
85
91
|
86
-
44 | #[derive_where(Clone)]
92
+
51 | #[derive_where(Clone)]
87
93
| ^^^^^^^^^^^^^^^^^^^^^^
88
94
|
89
95
= note: this error originates in the attribute macro `derive_where` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments