We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef923c2 commit f111085Copy full SHA for f111085
src/test/compile-fail/issue-42796.rs
@@ -17,7 +17,7 @@ impl<T, Smoke> Mirror<Smoke> for T {
17
}
18
19
pub fn poison<S>(victim: String) where <String as Mirror<S>>::Image: Copy {
20
- loop { drop(victim); }
+ loop { drop(victim); } //~ ERROR use of moved value
21
22
23
fn main() {
0 commit comments