Skip to content

Commit

Permalink
update test: victim is now Copy because of the where-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 23, 2018
1 parent d1ee1b2 commit a4e763c
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); } //~ ERROR use of moved value
loop { drop(victim); }
}

fn main() {
Expand Down

0 comments on commit a4e763c

Please sign in to comment.