about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2017-12-17 10:16:41 +0100
committerMichael Hewson <michael@michaelhewson.ca>2017-12-17 10:16:41 +0100
commit5c656f0c72d4a1aeff9a761fe455e522e975eee2 (patch)
treef4dd72e95a72cb8527cf8c0d8de9dbaf433f0a76 /src/test
parent23555b9f127a787fc649f869a0d39317ea30d681 (diff)
downloadrust-5c656f0c72d4a1aeff9a761fe455e522e975eee2.tar.gz
rust-5c656f0c72d4a1aeff9a761fe455e522e975eee2.zip
update ui/arbitrary-self-types-not-object-safe with shorter error message
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/arbitrary-self-types-not-object-safe.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/arbitrary-self-types-not-object-safe.stderr b/src/test/ui/arbitrary-self-types-not-object-safe.stderr
index a1090fe031e..f258488ee2f 100644
--- a/src/test/ui/arbitrary-self-types-not-object-safe.stderr
+++ b/src/test/ui/arbitrary-self-types-not-object-safe.stderr
@@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
 40 |     let x = Box::new(5usize) as Box<Foo>;
    |                                 ^^^^^^^^ the trait `Foo` cannot be made into an object
    |
-   = note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box<Self>` are currently supported for trait objects
+   = note: method `foo` has a non-standard `self` type
 
 error[E0038]: the trait `Foo` cannot be made into an object
   --> $DIR/arbitrary-self-types-not-object-safe.rs:40:13
@@ -12,7 +12,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
 40 |     let x = Box::new(5usize) as Box<Foo>;
    |             ^^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
    |
-   = note: method `foo` has a non-standard `self` type. Only `&self`, `&mut self`, and `Box<Self>` are currently supported for trait objects
+   = note: method `foo` has a non-standard `self` type
    = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<Foo>>` for `std::boxed::Box<usize>`
 
 error: aborting due to 2 previous errors