From 5cd3cc134a41c92616ff74f652556135404ead8a Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 25 Aug 2022 10:23:22 +0000 Subject: [PATCH] Uncomment unsound code example --- src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs b/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs index 937ca48a52d..3bae0f17309 100644 --- a/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs +++ b/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs @@ -26,6 +26,6 @@ fn extend_lifetime(s: &str) -> Box + 'static> { } fn main() { - //let extended = extend_lifetime(&String::from("hello")); - //println!("{}", extended.as_ref().as_ref()); + let extended = extend_lifetime(&String::from("hello")); + println!("{}", extended.as_ref().as_ref()); }