Skip to content

Commit 3356d12

Browse files
Cameron SteffenCameron Steffen
authored andcommitted
move string_extend tests
1 parent 6d94167 commit 3356d12

File tree

4 files changed

+160
-161
lines changed

4 files changed

+160
-161
lines changed

tests/ui/methods.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,6 @@ impl IteratorFalsePositives {
189189
}
190190
}
191191

192-
#[derive(Copy, Clone)]
193-
struct HasChars;
194-
195-
impl HasChars {
196-
fn chars(self) -> std::str::Chars<'static> {
197-
"HasChars".chars()
198-
}
199-
}
200-
201192
/// Checks implementation of `FILTER_NEXT` lint
202193
fn filter_next() {
203194
let v = vec![3, 2, 1, 0, -1, -2, -3];
@@ -431,25 +422,3 @@ struct MyError(()); // doesn't implement Debug
431422
struct MyErrorWithParam<T> {
432423
x: T
433424
}
434-
435-
fn str_extend_chars() {
436-
let abc = "abc";
437-
let def = String::from("def");
438-
let mut s = String::new();
439-
440-
s.push_str(abc);
441-
s.extend(abc.chars());
442-
443-
s.push_str("abc");
444-
s.extend("abc".chars());
445-
446-
s.push_str(&def);
447-
s.extend(def.chars());
448-
449-
s.extend(abc.chars().skip(1));
450-
s.extend("abc".chars().skip(1));
451-
s.extend(['a', 'b', 'c'].iter());
452-
453-
let f = HasChars;
454-
s.extend(f.chars());
455-
}

0 commit comments

Comments
 (0)