forked from gentoo-utils/gentoo-utils
Squashed 'subprojects/thiserror/' content from commit 247eab5
git-subtree-dir: subprojects/thiserror git-subtree-split: 247eab5d79e27ad28859afdf8bc600a4242829b7
This commit is contained in:
23
tests/ui/duplicate-fmt.rs
Normal file
23
tests/ui/duplicate-fmt.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error("...")]
|
||||
#[error("...")]
|
||||
pub struct Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error(fmt = core::fmt::Octal::fmt)]
|
||||
#[error(fmt = core::fmt::LowerHex::fmt)]
|
||||
pub enum FmtFmt {}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error(fmt = core::fmt::Octal::fmt)]
|
||||
#[error(transparent)]
|
||||
pub enum FmtTransparent {}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error(fmt = core::fmt::Octal::fmt)]
|
||||
#[error("...")]
|
||||
pub enum FmtDisplay {}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user