37
submitted 6 days 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 5 days 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 5 days ago
this post was submitted on 11 Dec 2025
37 points (100.0% liked)

Rust

7576 readers
36 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