diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 19:28:14 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 19:28:14 +0500 |
| commit | 1549585f26881927ea8305e0724d2d1f1dc45ade (patch) | |
| tree | 4ee5910334298af44557acbac0d8fa0ad0069297 /tests/ui/string-box-error.rs | |
| parent | f46ce66fcc3d6058f90ac5bf0930f940f1e7b0ca (diff) | |
| download | rust-1549585f26881927ea8305e0724d2d1f1dc45ade.tar.gz rust-1549585f26881927ea8305e0724d2d1f1dc45ade.zip | |
moved tests
Diffstat (limited to 'tests/ui/string-box-error.rs')
| -rw-r--r-- | tests/ui/string-box-error.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/ui/string-box-error.rs b/tests/ui/string-box-error.rs deleted file mode 100644 index 9a7cd81ee04..00000000000 --- a/tests/ui/string-box-error.rs +++ /dev/null @@ -1,12 +0,0 @@ -//@ run-pass -// Ensure that both `Box<dyn Error + Send + Sync>` and `Box<dyn Error>` can be -// obtained from `String`. - -use std::error::Error; - -fn main() { - let _err1: Box<dyn Error + Send + Sync> = From::from("test".to_string()); - let _err2: Box<dyn Error> = From::from("test".to_string()); - let _err3: Box<dyn Error + Send + Sync + 'static> = From::from("test"); - let _err4: Box<dyn Error> = From::from("test"); -} |
