From 9e5192d917e998d78fd25c4013eb8117f7401068 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 20 Feb 2021 18:51:42 +0100 Subject: Don't lower TypeBound::Lifetime as GenericPredicate::Error --- crates/hir_ty/src/tests/method_resolution.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/tests/method_resolution.rs') diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs index 80e795fbf..659b8fce9 100644 --- a/crates/hir_ty/src/tests/method_resolution.rs +++ b/crates/hir_ty/src/tests/method_resolution.rs @@ -1114,14 +1114,14 @@ fn method_on_dyn_impl() { trait Foo {} impl Foo for u32 {} -impl dyn Foo { +impl dyn Foo + '_ { pub fn dyn_foo(&self) -> u32 { 0 } } fn main() { - let f = &42u32 as &dyn Foo; + let f = &42u32 as &dyn Foo; f.dyn_foo(); // ^u32 } -- cgit v1.2.3