summaryrefslogtreecommitdiffstats
path: root/vendor/thiserror/tests/ui/unexpected-field-fmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/thiserror/tests/ui/unexpected-field-fmt.rs')
-rw-r--r--vendor/thiserror/tests/ui/unexpected-field-fmt.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/thiserror/tests/ui/unexpected-field-fmt.rs b/vendor/thiserror/tests/ui/unexpected-field-fmt.rs
new file mode 100644
index 000000000..7c439d941
--- /dev/null
+++ b/vendor/thiserror/tests/ui/unexpected-field-fmt.rs
@@ -0,0 +1,11 @@
+use thiserror::Error;
+
+#[derive(Error, Debug)]
+pub enum Error {
+ What {
+ #[error("...")]
+ io: std::io::Error,
+ },
+}
+
+fn main() {}