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
Copy file name to clipboardexpand all lines: src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed
+2-1
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,8 @@ impl Clone for U {
55
55
56
56
fn test_clone_trait() {
57
57
let f = U(S(String::from("Hello World")), T(0));
58
-
let c = || { let _ = &f;
58
+
let c = || {
59
+
let _ = &f;
59
60
//~^ ERROR: `Clone` trait implementation for closure and drop order
60
61
//~| NOTE: in Rust 2018, this closure would implement `Clone` as `f` implements `Clone`, but in Rust 2021, this closure would no longer implement `Clone` as `f.1` does not implement `Clone`
0 commit comments