about summary refs log tree commit diff
path: root/src/test/ui/resolve
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-06-09 16:53:36 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-06-19 15:19:13 -0700
commit776544f011a6a5beccb7923a261b0dcecdd2396a (patch)
tree1324f0d410e2ec3bd75ea5378a79fbc5a39c8a3e /src/test/ui/resolve
parentb3a1d56ebe34276916f34ffb0fed34d406f73c55 (diff)
downloadrust-776544f011a6a5beccb7923a261b0dcecdd2396a.tar.gz
rust-776544f011a6a5beccb7923a261b0dcecdd2396a.zip
Add message to `rustc_on_unimplemented` attributes in core
Diffstat (limited to 'src/test/ui/resolve')
-rw-r--r--src/test/ui/resolve/issue-5035-2.rs3
-rw-r--r--src/test/ui/resolve/issue-5035-2.stderr4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/resolve/issue-5035-2.rs b/src/test/ui/resolve/issue-5035-2.rs
index 83ff95cc2ea..f6cdb05394a 100644
--- a/src/test/ui/resolve/issue-5035-2.rs
+++ b/src/test/ui/resolve/issue-5035-2.rs
@@ -11,6 +11,7 @@
 trait I {}
 type K = I+'static;
 
-fn foo(_x: K) {} //~ ERROR: `I + 'static: std::marker::Sized` is not satisfied
+fn foo(_x: K) {}
+//~^ ERROR `I + 'static` does not have a constant size known at compile-time
 
 fn main() {}
diff --git a/src/test/ui/resolve/issue-5035-2.stderr b/src/test/ui/resolve/issue-5035-2.stderr
index 92309274e84..554e97a1281 100644
--- a/src/test/ui/resolve/issue-5035-2.stderr
+++ b/src/test/ui/resolve/issue-5035-2.stderr
@@ -1,7 +1,7 @@
-error[E0277]: the trait bound `I + 'static: std::marker::Sized` is not satisfied
+error[E0277]: `I + 'static` does not have a constant size known at compile-time
   --> $DIR/issue-5035-2.rs:14:8
    |
-LL | fn foo(_x: K) {} //~ ERROR: `I + 'static: std::marker::Sized` is not satisfied
+LL | fn foo(_x: K) {}
    |        ^^ `I + 'static` does not have a constant size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `I + 'static`