you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 11 months ago (1 child)

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

  • source
  • hideshow 1 child comment