about summary refs log tree commit diff
path: root/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2023-11-10 10:11:24 +0800
committersurechen <chenshuo17@huawei.com>2023-12-10 10:56:22 +0800
commit40ae34194c586eea3614d3216322053d2e8e7b37 (patch)
tree2f783001d0356467f126d3420e5b94446fb36fde /tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs
parent8cd8d313690260e6cacc280b93710d62d4ffefb0 (diff)
downloadrust-40ae34194c586eea3614d3216322053d2e8e7b37.tar.gz
rust-40ae34194c586eea3614d3216322053d2e8e7b37.zip
remove redundant imports
detects redundant imports that can be eliminated.

for #117772 :

In order to facilitate review and modification, split the checking code and
removing redundant imports code into two PR.
Diffstat (limited to 'tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs')
-rw-r--r--tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs b/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs
index ae267e7988e..1d52d44d169 100644
--- a/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs
+++ b/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs
@@ -1,8 +1,5 @@
 // run-pass
 
-use std::result::Result;
-use std::result::Result::Ok;
-
 static C: Result<(), Box<isize>> = Ok(());
 
 // This is because of yet another bad assertion (ICE) about the null side of a nullable enum.