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[E0599]: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
65
-
--> $DIR/issue-2392.rs:57:12
65
+
--> $DIR/issue-2392.rs:53:12
66
66
|
67
67
LL | struct Obj<F> where F: FnOnce() -> u32 {
68
68
| -------------------------------------- method `closure` not found for this
@@ -75,7 +75,7 @@ LL | (w.wrap.closure)();
75
75
| ^ ^
76
76
77
77
error[E0599]: no method named `not_closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
78
-
--> $DIR/issue-2392.rs:59:12
78
+
--> $DIR/issue-2392.rs:55:12
79
79
|
80
80
LL | struct Obj<F> where F: FnOnce() -> u32 {
81
81
| -------------------------------------- method `not_closure` not found for this
@@ -85,8 +85,8 @@ LL | w.wrap.not_closure();
85
85
| |
86
86
| field, not a method
87
87
88
-
error[E0599]: no method named `closure` found for type `Obj<std::boxed::Box<(dyn std::boxed::FnBox<(), Output = u32> + 'static)>>` in the current scope
89
-
--> $DIR/issue-2392.rs:62:24
88
+
error[E0599]: no method named `closure` found for type `Obj<std::boxed::Box<(dyn std::ops::FnOnce() -> u32 + 'static)>>` in the current scope
89
+
--> $DIR/issue-2392.rs:58:24
90
90
|
91
91
LL | struct Obj<F> where F: FnOnce() -> u32 {
92
92
| -------------------------------------- method `closure` not found for this
0 commit comments