Skip to content

Commit 96517cd

Browse files
committed
update test: victim is now Copy because of the where-clause
1 parent adff1b1 commit 96517cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/issue-42796.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl<T, Smoke> Mirror<Smoke> for T {
1717
}
1818

1919
pub fn poison<S>(victim: String) where <String as Mirror<S>>::Image: Copy {
20-
loop { drop(victim); } //~ ERROR use of moved value
20+
loop { drop(victim); }
2121
}
2222

2323
fn main() {

0 commit comments

Comments
 (0)