summaryrefslogtreecommitdiffstats
path: root/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs b/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs
index 6ccbb5bb2..280856805 100644
--- a/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs
+++ b/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs
@@ -1,5 +1,3 @@
-#![deny(implied_bounds_entailment)]
-
trait Project {
type Ty;
}
@@ -11,8 +9,7 @@ trait Trait {
}
impl Trait for () {
fn get<'s>(s: &'s str, _: <&'static &'s () as Project>::Ty) -> &'static str {
- //~^ ERROR impl method assumes more implied bounds than the corresponding trait method
- //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ //~^ ERROR cannot infer an appropriate lifetime for lifetime parameter 's in generic type due to conflicting requirements
s
}
}