ohno 0.4.0

High-quality Rust error handling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! An argument is scoped to `self`, so `self.` lands on its leftmost term whatever the expression
//! is built from. The root is therefore looked for through every form that keeps a term in that
//! position, and reported at the term itself rather than at the whole expression.

#[ohno::error]
#[display("bad: {}", cnt * 2)]
pub struct BinaryRootError {
    pub count: u32,
}

fn main() {}