Skip to content

Commit 8e5ed3c

Browse files
committed
string-box-error
1 parent 5929120 commit 8e5ed3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ui/traits/error-trait-object-from-string.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
15
//@ run-pass
2-
// Ensure that both `Box<dyn Error + Send + Sync>` and `Box<dyn Error>` can be
3-
// obtained from `String`.
46

57
use std::error::Error;
68

0 commit comments

Comments
 (0)