nil
if err != nil
Example
use nil::prelude::*;
#[allow(clippy::needless_return)] // Ignore this line.
fn thing() -> (isize, error) {
return (1, nil());
}
fn main() {
let (n, err) = thing();
if err != nil() {
println!("Oh no!");
}
println!("Got {n}.");
}