summaryrefslogtreecommitdiffstats
path: root/third_party/rust/thiserror/tests/ui/source-enum-not-error.rs
blob: dae2285b830c89ce6a7d636b5736f5f7aaf740c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Debug)]
pub struct NotError;

#[derive(Error, Debug)]
#[error("...")]
pub enum ErrorEnum {
    Broken { source: NotError },
}

fn main() {}