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 5929120 commit 8e5ed3cCopy full SHA for 8e5ed3c
tests/ui/traits/error-trait-object-from-string.rs
@@ -1,6 +1,8 @@
1
+//! Check that `String` and `&str` can be converted into `Box<dyn Error>` and
2
+//! `Box<dyn Error + Send + Sync>` trait objects
3
+//! demonstrating their compatibility with the `Error` trait.
4
+
5
//@ run-pass
-// Ensure that both `Box<dyn Error + Send + Sync>` and `Box<dyn Error>` can be
-// obtained from `String`.
6
7
use std::error::Error;
8
0 commit comments