Skip to content

Commit

Permalink
Uncomment unsound code example
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 8, 2022
1 parent 5c9d28d commit 5cd3cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fn extend_lifetime(s: &str) -> Box<dyn AsRef<str> + '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());
}

0 comments on commit 5cd3cc1

Please sign in to comment.