1
- error[E0599]: no method named `closure` found for struct `Obj<{
[email protected] :
37 :36}>` in the current scope
2
- --> $DIR/issue-2392.rs:38 :15
1
+ error[E0599]: no method named `closure` found for struct `Obj<{closure@$DIR/ issue-2392.rs:35 :36: 35:38 }>` in the current scope
2
+ --> $DIR/issue-2392.rs:36 :15
3
3
|
4
4
LL | struct Obj<F> where F: FnOnce() -> u32 {
5
5
| ------------- method `closure` not found for this struct
6
6
...
7
7
LL | o_closure.closure();
8
8
| ^^^^^^^ field, not a method
9
9
|
10
- = note: the full name for the type has been written to '$TEST_BUILD_DIR/issue-2392.long-type-$LONG_TYPE_HASH.txt'
11
- = note: consider using `--verbose` to print the full type name to the console
12
10
help: to call the closure stored in `closure`, surround the field access with parentheses
13
11
|
14
12
LL | (o_closure.closure)();
15
13
| + +
16
14
17
- error[E0599]: no method named `not_closure` found for struct `Obj<{
[email protected] :
37 :36}>` in the current scope
18
- --> $DIR/issue-2392.rs:40 :15
15
+ error[E0599]: no method named `not_closure` found for struct `Obj<{closure@$DIR/ issue-2392.rs:35 :36: 35:38 }>` in the current scope
16
+ --> $DIR/issue-2392.rs:38 :15
19
17
|
20
18
LL | struct Obj<F> where F: FnOnce() -> u32 {
21
19
| ------------- method `not_closure` not found for this struct
@@ -24,12 +22,9 @@ LL | o_closure.not_closure();
24
22
| ^^^^^^^^^^^-- help: remove the arguments
25
23
| |
26
24
| field, not a method
27
- |
28
- = note: the full name for the type has been written to '$TEST_BUILD_DIR/issue-2392.long-type-$LONG_TYPE_HASH.txt'
29
- = note: consider using `--verbose` to print the full type name to the console
30
25
31
26
error[E0599]: no method named `closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
32
- --> $DIR/issue-2392.rs:44 :12
27
+ --> $DIR/issue-2392.rs:42 :12
33
28
|
34
29
LL | struct Obj<F> where F: FnOnce() -> u32 {
35
30
| ------------- method `closure` not found for this struct
@@ -43,7 +38,7 @@ LL | (o_func.closure)();
43
38
| + +
44
39
45
40
error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the current scope
46
- --> $DIR/issue-2392.rs:47 :14
41
+ --> $DIR/issue-2392.rs:45 :14
47
42
|
48
43
LL | struct BoxedObj {
49
44
| --------------- method `boxed_closure` not found for this struct
@@ -57,7 +52,7 @@ LL | (boxed_fn.boxed_closure)();
57
52
| + +
58
53
59
54
error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the current scope
60
- --> $DIR/issue-2392.rs:50 :19
55
+ --> $DIR/issue-2392.rs:48 :19
61
56
|
62
57
LL | struct BoxedObj {
63
58
| --------------- method `boxed_closure` not found for this struct
@@ -71,7 +66,7 @@ LL | (boxed_closure.boxed_closure)();
71
66
| + +
72
67
73
68
error[E0599]: no method named `closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
74
- --> $DIR/issue-2392.rs:55 :12
69
+ --> $DIR/issue-2392.rs:53 :12
75
70
|
76
71
LL | struct Obj<F> where F: FnOnce() -> u32 {
77
72
| ------------- method `closure` not found for this struct
@@ -85,7 +80,7 @@ LL | (w.wrap.closure)();
85
80
| + +
86
81
87
82
error[E0599]: no method named `not_closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
88
- --> $DIR/issue-2392.rs:57 :12
83
+ --> $DIR/issue-2392.rs:55 :12
89
84
|
90
85
LL | struct Obj<F> where F: FnOnce() -> u32 {
91
86
| ------------- method `not_closure` not found for this struct
@@ -96,7 +91,7 @@ LL | w.wrap.not_closure();
96
91
| field, not a method
97
92
98
93
error[E0599]: no method named `closure` found for struct `Obj<Box<(dyn FnOnce() -> u32 + 'static)>>` in the current scope
99
- --> $DIR/issue-2392.rs:60 :24
94
+ --> $DIR/issue-2392.rs:58 :24
100
95
|
101
96
LL | struct Obj<F> where F: FnOnce() -> u32 {
102
97
| ------------- method `closure` not found for this struct
@@ -110,7 +105,7 @@ LL | (check_expression().closure)();
110
105
| + +
111
106
112
107
error[E0599]: no method named `f1` found for struct `FuncContainer` in the current scope
113
- --> $DIR/issue-2392.rs:66 :31
108
+ --> $DIR/issue-2392.rs:64 :31
114
109
|
115
110
LL | struct FuncContainer {
116
111
| -------------------- method `f1` not found for this struct
@@ -124,7 +119,7 @@ LL | ((*self.container).f1)(1);
124
119
| + +
125
120
126
121
error[E0599]: no method named `f2` found for struct `FuncContainer` in the current scope
127
- --> $DIR/issue-2392.rs:67 :31
122
+ --> $DIR/issue-2392.rs:65 :31
128
123
|
129
124
LL | struct FuncContainer {
130
125
| -------------------- method `f2` not found for this struct
@@ -138,7 +133,7 @@ LL | ((*self.container).f2)(1);
138
133
| + +
139
134
140
135
error[E0599]: no method named `f3` found for struct `FuncContainer` in the current scope
141
- --> $DIR/issue-2392.rs:68 :31
136
+ --> $DIR/issue-2392.rs:66 :31
142
137
|
143
138
LL | struct FuncContainer {
144
139
| -------------------- method `f3` not found for this struct
0 commit comments