39
submitted 1 month ago by jwr1@kbin.earth to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] INeedMana@piefed.zip 2 points 1 month ago

use core::convert::Infallible;
fn can_never_fail() -> Result<(), Infallible> {

Judging by recently discovered use of unwrap this might be a trap for some ;D

[-] BB_C@programming.dev 5 points 1 month ago
this post was submitted on 11 Dec 2025
39 points (100.0% liked)

Rust

7718 readers
65 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS