ohno 0.5.0

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

//! `#[ohno::error]` adds the `OhnoCore` field itself, and the name of that field is not stable, so
//! a hand-written constructor cannot initialize it.
//!
//! `#[derive(ohno::Error)]` with an explicitly declared core is the supported way to write
//! constructors by hand.

#[ohno::error]
#[no_constructors]
pub struct NoConstructors {
    pub path: String,
}

fn main() {}