mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Work around #19982 by rewriting test impls to not use anonymous
lifetimes. This currently causes an ICE; it should (ideally) work, but failing that at least give a structured error. For the purposes of this PR, though, workaround is fine.
This commit is contained in:
@@ -762,8 +762,8 @@ struct Counter<'a, 'b> {
|
||||
expected: &'b [int],
|
||||
}
|
||||
|
||||
impl<'a, 'b> FnMut(&int) -> bool for Counter<'a, 'b> {
|
||||
extern "rust-call" fn call_mut(&mut self, (&x,): (&int,)) -> bool {
|
||||
impl<'a, 'b, 'c> FnMut(&'c int) -> bool for Counter<'a, 'b> {
|
||||
extern "rust-call" fn call_mut(&mut self, (&x,): (&'c int,)) -> bool {
|
||||
assert_eq!(x, self.expected[*self.i]);
|
||||
*self.i += 1;
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user