SpiceQA
Questions
Tags
Users
Badges
borrow-checker
241 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
Why does a reference to a temporary struct (`&Foo { … }`) live long enough, but a reference to a variable (`let foo = Foo { … }; &foo`) does not?
user_173292
0
•
asked May 21, 2022
2
2
52
borrow-checker
rust
Creating a file streaming abstraction
user_292731
0
•
asked May 21, 2022
2
1
80
borrow-checker
rust
How to parallelize this loop?
user_11559213
0
•
asked May 18, 2022
5
1
113
borrow-checker
rust
lifetime
multithreading
Multiple borrows in a method that uses another method of the same struct as an argument: why can't the compiler figure it out?
user_1088499
0
•
asked May 16, 2022
4
0
43
borrow-checker
rust
RefMut borrowed from Option does not live long enough (Option<Rc<RefCell<Node>>>)
user_18945974
0
•
asked May 15, 2022
3
2
159
borrow-checker
refcell
rust
directed-acyclic-graphs
"Cannot borrow `*arr` as immutable because it is also borrowed as mutable" in a function call
user_12134145
0
•
asked May 14, 2022
1
1
53
borrow-checker
rust
Borrow checker and shared I/O
user_237815
0
•
asked Apr 26, 2022
2
2
87
borrow-checker
rust
Rust question : Cannot borrow parts of tuple mutably and immutably when tuple is inside a vector
user_18945974
0
•
asked Apr 26, 2022
1
1
101
borrow-checker
rust
struct with reference to element of a vector in another field
user_7092900
0
•
asked Apr 24, 2022
2
1
281
borrow-checker
rust
Why is this borrow considered to be "used later" even though it clearly isn't?
user_9074921
0
•
asked Apr 21, 2022
4
1
110
borrow-checker
rust
lifetime
Prev
Prev
2
3
4
(current)
5
6
Next
Next
Hot Questions