summaryrefslogtreecommitdiffstats
path: root/third_party/rust/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs
blob: 160b6b247ff5a62ef46dd1dda2d465ee60c187ad (plain)
1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Debug)]
struct NotError;

#[derive(Error, Debug)]
#[error("...")]
pub struct ErrorStruct(#[source] NotError);

fn main() {}