about summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl
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/specialization/defaultimpl
parent2060d49c39e41a286b0425cb2f7ba6022a2d4b96 (diff)
Update tests
Diffstat (limited to 'src/test/ui/specialization/defaultimpl')
-rw-r--r--src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr2
-rw-r--r--src/test/ui/specialization/defaultimpl/specialization-no-default.stderr10
-rw-r--r--src/test/ui/specialization/defaultimpl/validation.stderr8
3 files changed, 10 insertions, 10 deletions
diff --git a/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr b/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr
index 3b3076cc672..0b20a19d2e1 100644
--- a/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr
+++ b/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr
@@ -1,7 +1,7 @@
 error[E0658]: specialization is unstable (see issue #31844)
   --> $DIR/specialization-feature-gate-default.rs:7:1
    |
-LL | / default impl<T> Foo for T { //~ ERROR specialization is unstable
+LL | / default impl<T> Foo for T {
 LL | |     fn foo(&self) {}
 LL | | }
    | |_^
diff --git a/src/test/ui/specialization/defaultimpl/specialization-no-default.stderr b/src/test/ui/specialization/defaultimpl/specialization-no-default.stderr
index 7ca9df9f5d9..91690f64d94 100644
--- a/src/test/ui/specialization/defaultimpl/specialization-no-default.stderr
+++ b/src/test/ui/specialization/defaultimpl/specialization-no-default.stderr
@@ -7,7 +7,7 @@ LL | |     fn bar(&self) {}
 LL | | }
    | |_- parent `impl` is here
 ...
-LL |       fn foo(&self) {} //~ ERROR E0520
+LL |       fn foo(&self) {}
    |       ^^^^^^^^^^^^^^^^ cannot specialize default item `foo`
    |
    = note: to specialize, `foo` in the parent `impl` must be marked `default`
@@ -21,7 +21,7 @@ LL | |     fn bar(&self) {}
 LL | | }
    | |_- parent `impl` is here
 ...
-LL |       fn bar(&self) {} //~ ERROR E0520
+LL |       fn bar(&self) {}
    |       ^^^^^^^^^^^^^^^^ cannot specialize default item `bar`
    |
    = note: to specialize, `bar` in the parent `impl` must be marked `default`
@@ -34,7 +34,7 @@ LL | |     type T = u8;
 LL | | }
    | |_- parent `impl` is here
 ...
-LL |       type T = (); //~ ERROR E0520
+LL |       type T = ();
    |       ^^^^^^^^^^^^ cannot specialize default item `T`
    |
    = note: to specialize, `T` in the parent `impl` must be marked `default`
@@ -47,7 +47,7 @@ LL | |     fn baz(&self) {}
 LL | | }
    | |_- parent `impl` is here
 ...
-LL |       fn baz(&self) {} //~ ERROR E0520
+LL |       fn baz(&self) {}
    |       ^^^^^^^^^^^^^^^^ cannot specialize default item `baz`
    |
    = note: to specialize, `baz` in the parent `impl` must be marked `default`
@@ -60,7 +60,7 @@ LL | |     fn redundant(&self) {}
 LL | | }
    | |_- parent `impl` is here
 ...
-LL |       fn redundant(&self) {} //~ ERROR E0520
+LL |       fn redundant(&self) {}
    |       ^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `redundant`
    |
    = note: to specialize, `redundant` in the parent `impl` must be marked `default`
diff --git a/src/test/ui/specialization/defaultimpl/validation.stderr b/src/test/ui/specialization/defaultimpl/validation.stderr
index 2778cac7ae5..14a06c39088 100644
--- a/src/test/ui/specialization/defaultimpl/validation.stderr
+++ b/src/test/ui/specialization/defaultimpl/validation.stderr
@@ -1,7 +1,7 @@
 error: inherent impls cannot be default
   --> $DIR/validation.rs:7:1
    |
-LL | default impl S {} //~ ERROR inherent impls cannot be default
+LL | default impl S {}
    | ^^^^^^^^^^^^^^^^^
    |
    = note: only trait implementations may be annotated with default
@@ -9,19 +9,19 @@ LL | default impl S {} //~ ERROR inherent impls cannot be default
 error: impls of auto traits cannot be default
   --> $DIR/validation.rs:9:1
    |
-LL | default unsafe impl Send for S {} //~ ERROR impls of auto traits cannot be default
+LL | default unsafe impl Send for S {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: impls of auto traits cannot be default
   --> $DIR/validation.rs:10:1
    |
-LL | default impl !Send for Z {} //~ ERROR impls of auto traits cannot be default
+LL | default impl !Send for Z {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
   --> $DIR/validation.rs:13:1
    |
-LL | default impl !Tr for S {} //~ ERROR negative impls are only allowed for auto traits
+LL | default impl !Tr for S {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 4 previous errors