about summary refs log tree commit diff
path: root/src/test/ui/compare-method
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-03-09 15:03:44 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-03-11 23:10:26 +0300
commitfa72a81bea27f1fda4287475e4cc2f684c971e7f (patch)
treee691a2e38d57c5cd37932754ddf1d8a7048f1f54 /src/test/ui/compare-method
parent2060d49c39e41a286b0425cb2f7ba6022a2d4b96 (diff)
downloadrust-fa72a81bea27f1fda4287475e4cc2f684c971e7f.tar.gz
rust-fa72a81bea27f1fda4287475e4cc2f684c971e7f.zip
Update tests
Diffstat (limited to 'src/test/ui/compare-method')
-rw-r--r--src/test/ui/compare-method/proj-outlives-region.stderr2
-rw-r--r--src/test/ui/compare-method/region-extra.stderr2
-rw-r--r--src/test/ui/compare-method/reordered-type-param.stderr2
-rw-r--r--src/test/ui/compare-method/trait-bound-on-type-parameter.stderr2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/compare-method/proj-outlives-region.stderr b/src/test/ui/compare-method/proj-outlives-region.stderr
index ba0b04dca9d..e5f5c5ed20d 100644
--- a/src/test/ui/compare-method/proj-outlives-region.stderr
+++ b/src/test/ui/compare-method/proj-outlives-region.stderr
@@ -4,7 +4,7 @@ error[E0276]: impl has stricter requirements than trait
 LL |     fn foo() where T: 'a;
    |     --------------------- definition of `foo` from trait
 ...
-LL |     fn foo() where U: 'a { } //~ ERROR E0276
+LL |     fn foo() where U: 'a { }
    |     ^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: 'a`
 
 error: aborting due to previous error
diff --git a/src/test/ui/compare-method/region-extra.stderr b/src/test/ui/compare-method/region-extra.stderr
index 48ca690f425..5a584c7d6ed 100644
--- a/src/test/ui/compare-method/region-extra.stderr
+++ b/src/test/ui/compare-method/region-extra.stderr
@@ -4,7 +4,7 @@ error[E0276]: impl has stricter requirements than trait
 LL |     fn foo();
    |     --------- definition of `foo` from trait
 ...
-LL |     fn foo() where 'a: 'b { } //~ ERROR impl has stricter
+LL |     fn foo() where 'a: 'b { }
    |     ^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `'a: 'b`
 
 error: aborting due to previous error
diff --git a/src/test/ui/compare-method/reordered-type-param.stderr b/src/test/ui/compare-method/reordered-type-param.stderr
index c162c720a48..a33908c01c8 100644
--- a/src/test/ui/compare-method/reordered-type-param.stderr
+++ b/src/test/ui/compare-method/reordered-type-param.stderr
@@ -4,7 +4,7 @@ error[E0053]: method `b` has an incompatible type for trait
 LL |   fn b<C:Clone,D>(&self, x: C) -> C;
    |                             - type in trait
 ...
-LL |   fn b<F:Clone,G>(&self, _x: G) -> G { panic!() } //~ ERROR method `b` has an incompatible type
+LL |   fn b<F:Clone,G>(&self, _x: G) -> G { panic!() }
    |                              ^ expected type parameter, found a different type parameter
    |
    = note: expected type `fn(&E, F) -> F`
diff --git a/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr b/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr
index 07f5a0a6cec..5d09038076f 100644
--- a/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr
+++ b/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr
@@ -4,7 +4,7 @@ error[E0276]: impl has stricter requirements than trait
 LL |   fn b<C,D>(&self, x: C) -> C;
    |   ---------------------------- definition of `b` from trait
 ...
-LL |     fn b<F: Sync, G>(&self, _x: F) -> F { panic!() } //~ ERROR E0276
+LL |     fn b<F: Sync, G>(&self, _x: F) -> F { panic!() }
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `F: std::marker::Sync`
 
 error: aborting due to previous error