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 7526868 commit 2be2288Copy full SHA for 2be2288
debug/tests/07-associated-type.rs
@@ -10,8 +10,8 @@
10
// {...}
11
//
12
// You can identify associated types as any syn::TypePath in which the first
13
-// path component is one of the type parameters, or in which the QSelf is one of
14
-// the type parameters.
+// path segment is one of the type parameters and there is more than one
+// segment.
15
16
17
// Resources:
@@ -31,11 +31,6 @@ pub struct Field<T: Trait> {
31
values: Vec<T::Value>,
32
}
33
34
-#[derive(CustomDebug)]
35
-pub struct FieldQ<T: Trait> {
36
- values: Vec<<T as Trait>::Value>,
37
-}
38
-
39
fn assert_debug<F: Debug>() {}
40
41
fn main() {
@@ -47,5 +42,4 @@ fn main() {
47
42
48
43
49
44
assert_debug::<Field<Id>>();
50
- assert_debug::<FieldQ<Id>>();
51
45
0 commit comments