Skip to content

Commit 4c1f627

Browse files
committed
use different numbers in the new test case
to avoid possible confusion
1 parent 501b4cf commit 4c1f627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/double_ended_iterator_last.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn drop_order() {
109109
println!("Last element is {}", v.last().unwrap().0);
110110
//~^ ERROR: called `Iterator::last` on a `DoubleEndedIterator`
111111

112-
let v = vec![S("one"), S("two"), S("three")];
112+
let v = vec![S("four"), S("five"), S("six")];
113113
let v = (DropDeIterator(v.into_iter()), 42);
114114
println!("Last element is {}", v.0.last().unwrap().0);
115115
//~^ ERROR: called `Iterator::last` on a `DoubleEndedIterator`

0 commit comments

Comments
 (0)