about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2016-07-12 10:43:37 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2016-07-14 23:42:13 +0200
commitf2e73d9d48dec8ae3103ba46a35586a2a5435a4f (patch)
tree37cd4a36f7a412ff73d951c57aa45052ff6f0d90 /src
parent208de46f8b7c7338f7d19057e748a45a72fc7d73 (diff)
downloadrust-f2e73d9d48dec8ae3103ba46a35586a2a5435a4f.tar.gz
rust-f2e73d9d48dec8ae3103ba46a35586a2a5435a4f.zip
Fix compile-fail test for `ExactSizeIterator::is_empty`
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/method-suggestion-no-duplication.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/compile-fail/method-suggestion-no-duplication.rs b/src/test/compile-fail/method-suggestion-no-duplication.rs
index c8c1447fea3..390b8f07b2f 100644
--- a/src/test/compile-fail/method-suggestion-no-duplication.rs
+++ b/src/test/compile-fail/method-suggestion-no-duplication.rs
@@ -18,7 +18,8 @@ fn foo<F>(f: F) where F: FnMut(Foo) {}
 fn main() {
     foo(|s| s.is_empty());
     //~^ ERROR no method named `is_empty` found
-    //~^^ HELP #1: `core::slice::SliceExt`
-    //~^^^ HELP #2: `core::str::StrExt`
-    //~^^^^ HELP items from traits can only be used if the trait is implemented and in scope; the following traits define an item `is_empty`, perhaps you need to implement one of them:
+    //~^^ HELP #1: `std::iter::ExactSizeIterator`
+    //~^^^ HELP #2: `core::slice::SliceExt`
+    //~^^^^ HELP #3: `core::str::StrExt`
+    //~^^^^^ HELP items from traits can only be used if the trait is implemented and in scope; the following traits define an item `is_empty`, perhaps you need to implement one of them:
 }