Skip to content

Commit

Permalink
WIP add error back to rust-lang#42796 --- not 100% sure why though
Browse files Browse the repository at this point in the history
Maybe it has to do with the folding of obligations?
  • Loading branch information
nikomatsakis committed Mar 3, 2018
1 parent ef923c2 commit f111085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-42796.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<T, Smoke> Mirror<Smoke> for T {
}

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

fn main() {
Expand Down

0 comments on commit f111085

Please sign in to comment.