@@ -2,7 +2,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
22 --> $DIR/issue-2392.rs:36:15
33 |
44LL | struct Obj<F> where F: FnOnce() -> u32 {
5- | -------------------------------------- method `closure` not found for this
5+ | --- method `closure` not found for this struct
66...
77LL | o_closure.closure();
88 | ^^^^^^^ field, not a method
@@ -16,7 +16,7 @@ error[E0599]: no method named `not_closure` found for struct `Obj` in the curren
1616 --> $DIR/issue-2392.rs:38:15
1717 |
1818LL | struct Obj<F> where F: FnOnce() -> u32 {
19- | -------------------------------------- method `not_closure` not found for this
19+ | --- method `not_closure` not found for this struct
2020...
2121LL | o_closure.not_closure();
2222 | ^^^^^^^^^^^-- help: remove the arguments
@@ -27,7 +27,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
2727 --> $DIR/issue-2392.rs:42:12
2828 |
2929LL | struct Obj<F> where F: FnOnce() -> u32 {
30- | -------------------------------------- method `closure` not found for this
30+ | --- method `closure` not found for this struct
3131...
3232LL | o_func.closure();
3333 | ^^^^^^^ field, not a method
@@ -41,7 +41,7 @@ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the
4141 --> $DIR/issue-2392.rs:45:14
4242 |
4343LL | struct BoxedObj {
44- | --------------- method `boxed_closure` not found for this
44+ | -------- method `boxed_closure` not found for this struct
4545...
4646LL | boxed_fn.boxed_closure();
4747 | ^^^^^^^^^^^^^ field, not a method
@@ -55,7 +55,7 @@ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the
5555 --> $DIR/issue-2392.rs:48:19
5656 |
5757LL | struct BoxedObj {
58- | --------------- method `boxed_closure` not found for this
58+ | -------- method `boxed_closure` not found for this struct
5959...
6060LL | boxed_closure.boxed_closure();
6161 | ^^^^^^^^^^^^^ field, not a method
@@ -69,7 +69,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
6969 --> $DIR/issue-2392.rs:53:12
7070 |
7171LL | struct Obj<F> where F: FnOnce() -> u32 {
72- | -------------------------------------- method `closure` not found for this
72+ | --- method `closure` not found for this struct
7373...
7474LL | w.wrap.closure();
7575 | ^^^^^^^ field, not a method
@@ -83,7 +83,7 @@ error[E0599]: no method named `not_closure` found for struct `Obj` in the curren
8383 --> $DIR/issue-2392.rs:55:12
8484 |
8585LL | struct Obj<F> where F: FnOnce() -> u32 {
86- | -------------------------------------- method `not_closure` not found for this
86+ | --- method `not_closure` not found for this struct
8787...
8888LL | w.wrap.not_closure();
8989 | ^^^^^^^^^^^-- help: remove the arguments
@@ -94,7 +94,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
9494 --> $DIR/issue-2392.rs:58:24
9595 |
9696LL | struct Obj<F> where F: FnOnce() -> u32 {
97- | -------------------------------------- method `closure` not found for this
97+ | --- method `closure` not found for this struct
9898...
9999LL | check_expression().closure();
100100 | ^^^^^^^ field, not a method
@@ -108,7 +108,7 @@ error[E0599]: no method named `f1` found for struct `FuncContainer` in the curre
108108 --> $DIR/issue-2392.rs:64:31
109109 |
110110LL | struct FuncContainer {
111- | -------------------- method `f1` not found for this
111+ | ------------- method `f1` not found for this struct
112112...
113113LL | (*self.container).f1(1);
114114 | ^^ field, not a method
@@ -122,7 +122,7 @@ error[E0599]: no method named `f2` found for struct `FuncContainer` in the curre
122122 --> $DIR/issue-2392.rs:65:31
123123 |
124124LL | struct FuncContainer {
125- | -------------------- method `f2` not found for this
125+ | ------------- method `f2` not found for this struct
126126...
127127LL | (*self.container).f2(1);
128128 | ^^ field, not a method
@@ -136,7 +136,7 @@ error[E0599]: no method named `f3` found for struct `FuncContainer` in the curre
136136 --> $DIR/issue-2392.rs:66:31
137137 |
138138LL | struct FuncContainer {
139- | -------------------- method `f3` not found for this
139+ | ------------- method `f3` not found for this struct
140140...
141141LL | (*self.container).f3(1);
142142 | ^^ field, not a method
0 commit comments