about summary refs log tree commit diff
path: root/tests/ui/string-box-error.rs
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-07-01 19:28:14 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-07-01 19:28:14 +0500
commit1549585f26881927ea8305e0724d2d1f1dc45ade (patch)
tree4ee5910334298af44557acbac0d8fa0ad0069297 /tests/ui/string-box-error.rs
parentf46ce66fcc3d6058f90ac5bf0930f940f1e7b0ca (diff)
downloadrust-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.rs12
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");
-}