Add failing variation of _0 span test
This commit is contained in:
parent
3891d985fb
commit
57b4e9218f
|
@ -206,14 +206,21 @@ fn test_macro_rules() {
|
|||
macro_rules! decl_error {
|
||||
($variant:ident($value:ident)) => {
|
||||
#[derive(Debug, Error)]
|
||||
pub enum Error {
|
||||
pub enum Error0 {
|
||||
#[error("{0:?}")]
|
||||
$variant($value),
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[error("{0:?}")]
|
||||
pub enum Error1 {
|
||||
$variant($value),
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
decl_error!(Repro(u8));
|
||||
|
||||
assert("0", Error::Repro(0));
|
||||
assert("0", Error0::Repro(0));
|
||||
assert("0", Error1::Repro(0));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue