]> git.lizzy.rs Git - rust.git/commitdiff
Fix compile-fail test for `ExactSizeIterator::is_empty`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 12 Jul 2016 08:43:37 +0000 (10:43 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 14 Jul 2016 21:42:13 +0000 (23:42 +0200)
src/test/compile-fail/method-suggestion-no-duplication.rs

index c8c1447fea3869b4ab9be12306411add555a8cc2..390b8f07b2fbd97436e3ea304c5adb5ede0c4f21 100644 (file)
@@ -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:
 }