Closed PJUllrich closed 1 month ago
You have it inside fn main()
, right? You can't do let
assignments outside of a function
Ah sorry, my mistake. I added it outside the fn main()
function. Now, I see that you also show that in the setup instructions. My bad! Thanks for the reply ❤
Environment
Rust: 1.80.1 Sentry: 0.34.0
Steps to Reproduce
I'm building a Trauri app and I copy&pasted the setup instructions into my
main.rs
:However, the Rust compiler complains and I can't get it to work. These are some code variations and the errors I've encountered:
Replace
let
withconst
orstatic
Remove
let
altogetherRemove duplicate bracket
Remove ClientOptions
Expected Result
The setup instructions work.
Actual Result
They don't work.