I’m reading the documentation for File:

//..
let mut file = File::create("foo.txt")?;
//..

What is the ? in this line? I do not recall seeing it in the Rust Book before.

3 Answers
3

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *