]> git.lizzy.rs Git - rust.git/commitdiff
Correct error location indicated by comments
authorKevin Leimkuhler <kevin@kleimkuhler.com>
Fri, 18 Jan 2019 06:33:25 +0000 (22:33 -0800)
committerKevin Leimkuhler <kevin@kleimkuhler.com>
Fri, 18 Jan 2019 06:37:12 +0000 (22:37 -0800)
src/test/ui/feature-gates/feature-gate-is_sorted.rs

index 432ead65b17217d3f56358329ebaa3e650abd537..078ecc577610ba6a140cd11d88e285bf4678ae64 100644 (file)
@@ -1,13 +1,13 @@
 fn main() {
     // Assert `Iterator` methods are feature gated
     assert!([1, 2, 2, 9].iter().is_sorted());
-    //^ ERROR: use of unstable library feature 'is_sorted'
+    //~^ ERROR: use of unstable library feature 'is_sorted': new API
     assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
-    //^ ERROR: use of unstable library feature 'is_sorted'
+    //~^ ERROR: use of unstable library feature 'is_sorted': new API
 
     // Assert `[T]` methods are feature gated
     assert!([1, 2, 2, 9].is_sorted());
-    //^ ERROR: use of unstable library feature 'is_sorted'
+    //~^ ERROR: use of unstable library feature 'is_sorted': new API
     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
-    //^ ERROR: use of unstable library feature 'is_sorted'
+    //~^ ERROR: use of unstable library feature 'is_sorted': new API
 }