about summary refs log tree commit diff
path: root/tests/ui/issues
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-05-28 09:26:40 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-04 15:33:20 +0000
commit7894a1148371e4d0fa665c183615a76f9e2ec656 (patch)
tree401b3a08c6603d4d8cc76beab6f055157cb213ed /tests/ui/issues
parent7d151fa3b015ad1dbac18933c58db3413a964534 (diff)
downloadrust-7894a1148371e4d0fa665c183615a76f9e2ec656.tar.gz
rust-7894a1148371e4d0fa665c183615a76f9e2ec656.zip
Move tests to a more appropriate directory
Diffstat (limited to 'tests/ui/issues')
-rw-r--r--tests/ui/issues/issue-53498.different_name.stderr15
-rw-r--r--tests/ui/issues/issue-53498.rs24
-rw-r--r--tests/ui/issues/issue-53498.same_name.stderr12
3 files changed, 0 insertions, 51 deletions
diff --git a/tests/ui/issues/issue-53498.different_name.stderr b/tests/ui/issues/issue-53498.different_name.stderr
deleted file mode 100644
index fc765f2e75d..00000000000
--- a/tests/ui/issues/issue-53498.different_name.stderr
+++ /dev/null
@@ -1,15 +0,0 @@
-error[E0599]: no function or associated item named `foo` found for struct `Foo<B>` in the current scope
-  --> $DIR/issue-53498.rs:21:27
-   |
-LL |     pub struct Foo<T>(T);
-   |     ----------------- function or associated item `foo` not found for this struct
-...
-LL |     test::Foo::<test::B>::foo();
-   |                           ^^^ function or associated item not found in `Foo<B>`
-   |
-   = note: the function or associated item was found for
-           - `Foo<A>`
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0599`.
diff --git a/tests/ui/issues/issue-53498.rs b/tests/ui/issues/issue-53498.rs
deleted file mode 100644
index 64eb3a0c5fd..00000000000
--- a/tests/ui/issues/issue-53498.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-//@ revisions: same_name different_name
-
-pub mod test {
-    pub struct A;
-    pub struct B;
-    pub struct Foo<T>(T);
-
-    impl Foo<A> {
-        fn foo() {}
-    }
-
-    impl Foo<B> {
-        #[cfg(same_name)]
-        fn foo() {}
-        #[cfg(different_name)]
-        fn bar() {}
-    }
-}
-
-fn main() {
-    test::Foo::<test::B>::foo();
-    //[same_name]~^ ERROR associated function `foo` is private
-    //[different_name]~^^ ERROR no function or associated item named `foo` found for struct `Foo<B>`
-}
diff --git a/tests/ui/issues/issue-53498.same_name.stderr b/tests/ui/issues/issue-53498.same_name.stderr
deleted file mode 100644
index 45ee858ac92..00000000000
--- a/tests/ui/issues/issue-53498.same_name.stderr
+++ /dev/null
@@ -1,12 +0,0 @@
-error[E0624]: associated function `foo` is private
-  --> $DIR/issue-53498.rs:21:27
-   |
-LL |         fn foo() {}
-   |         -------- private associated function defined here
-...
-LL |     test::Foo::<test::B>::foo();
-   |                           ^^^ private associated function
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0624`.