Skip to content

Commit f111085

Browse files
committedMar 3, 2018
WIP add error back to rust-lang#42796 --- not 100% sure why though
Maybe it has to do with the folding of obligations?
1 parent ef923c2 commit f111085

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); }
20+
loop { drop(victim); } //~ ERROR use of moved value
2121
}
2222

2323
fn main() {

0 commit comments

Comments
 (0)