about summary refs log tree commit diff
path: root/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/opt-out-bound-not-satisfied.rs')
-rw-r--r--tests/ui/impl-trait/opt-out-bound-not-satisfied.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs b/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs
index 27c493a13bf..7e0e1eadf9c 100644
--- a/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs
+++ b/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs
@@ -3,8 +3,8 @@
 
 use std::future::Future;
 fn foo() -> impl ?Future<Output = impl Send> {
-    //~^ ERROR: relaxing a default bound only does something for `?Sized`
-    //~| ERROR: relaxing a default bound only does something for `?Sized`
+    //~^ ERROR: bound modifier `?` can only be applied to `Sized`
+    //~| ERROR: bound modifier `?` can only be applied to `Sized`
     ()
 }