Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo;
- fn test<'a>(a: &'a mut Foo) -> &'a mut Foo {
- loop {
- if foo() {
- return a;
- }
- }
- }
- fn foo() -> bool {
- rand::random::<bool>()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement