We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6e8d4 commit 394c23bCopy full SHA for 394c23b
src/libstd/error.rs
@@ -212,6 +212,13 @@ impl<T: Error> Error for Box<T> {
212
}
213
214
215
+#[stable(feature = "fmt_error", since = "1.11.0")]
216
+impl Error for fmt::Error {
217
+ fn description(&self) -> &str {
218
+ "an error occurred when formatting an argument"
219
+ }
220
+}
221
+
222
// copied from any.rs
223
impl Error + 'static {
224
/// Returns true if the boxed type is the same as `T`
0 commit comments