Move ui/issues tests to relevant subdirectories

* tests(ui): migrate issues/issue-17546 to ui/resolve
* tests(ui): add gh issue link
* tests(ui/issues): move tests to variants dir
This commit is contained in:
kyleecodes
2026-03-25 00:35:04 +00:00
parent 562dee4820
commit 62ba3c1022
2 changed files with 5 additions and 4 deletions
@@ -1,5 +1,6 @@
//@ edition:2015
//@ ignore-sgx std::os::fortanix_sgx::usercalls::raw::Result changes compiler suggestions
// https://github.com/rust-lang/rust/issues/17546
use foo::MyEnum::Result;
use foo::NoResult; // Through a re-export
@@ -1,5 +1,5 @@
error[E0573]: expected type, found variant `NoResult`
--> $DIR/issue-17546.rs:15:17
--> $DIR/variant-result-noresult-used-as-type.rs:16:17
|
LL | fn new() -> NoResult<MyEnum, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL + fn new() -> Result<MyEnum, String> {
|
error[E0573]: expected type, found variant `Result`
--> $DIR/issue-17546.rs:25:17
--> $DIR/variant-result-noresult-used-as-type.rs:26:17
|
LL | fn new() -> Result<foo::MyEnum, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
@@ -36,7 +36,7 @@ LL + use std::thread::Result;
|
error[E0573]: expected type, found variant `Result`
--> $DIR/issue-17546.rs:31:13
--> $DIR/variant-result-noresult-used-as-type.rs:32:13
|
LL | fn new() -> Result<foo::MyEnum, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
@@ -53,7 +53,7 @@ LL + use std::thread::Result;
|
error[E0573]: expected type, found variant `NoResult`
--> $DIR/issue-17546.rs:36:15
--> $DIR/variant-result-noresult-used-as-type.rs:37:15
|
LL | fn newer() -> NoResult<foo::MyEnum, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^