about summary refs log tree commit diff
path: root/tests/ui/issues
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-28 08:36:51 +0200
committerGitHub <noreply@github.com>2025-07-28 08:36:51 +0200
commita08ced3856e297b9576a2ec697c5bcb8983a24c4 (patch)
treed2bd04fa247bb98edf7006943d56263598bf4cbc /tests/ui/issues
parenta9f58bff03969533800491c24b4f538b6b53c609 (diff)
parente9959aa74e23eb340d6c9e9a4eab807be03b028f (diff)
downloadrust-a08ced3856e297b9576a2ec697c5bcb8983a24c4.tar.gz
rust-a08ced3856e297b9576a2ec697c5bcb8983a24c4.zip
Rollup merge of #144151 - Kivooeo:issue1, r=jieyouxu
`tests/ui/issues/`: The Issues Strike Back [1/N]

I believe I’ve finally brought [my program](https://github.com/Kivooeo/test-manager) to life -- it now handles multiple test moves in one go: plain moves first, then a gentle touch on each file depends on given options. The process should be much smoother now.

Of course, I won’t rush through everything in a few days -- that would be unkind to `@Oneirical.` I’ll pace myself. And also I can't have more than one such PR because `issues.txt` will conflict with previous parts after merging them which is not fun as well.

This PR is just that: first commit - moves; second - regression comments and the occasional .stderr reblesses, also issue.txt and tidy changes. Nothing special, but progress nonetheless. This is for the purpose of preserving test file history during restructuring

Part of https://github.com/rust-lang/rust/issues/133895.

r? `@jieyouxu`
Diffstat (limited to 'tests/ui/issues')
-rw-r--r--tests/ui/issues/issue-10228.rs19
-rw-r--r--tests/ui/issues/issue-10291.rs8
-rw-r--r--tests/ui/issues/issue-10291.stderr11
-rw-r--r--tests/ui/issues/issue-102964.rs10
-rw-r--r--tests/ui/issues/issue-102964.stderr19
-rw-r--r--tests/ui/issues/issue-10396.rs14
-rw-r--r--tests/ui/issues/issue-10412.rs26
-rw-r--r--tests/ui/issues/issue-10412.stderr56
-rw-r--r--tests/ui/issues/issue-10436.rs11
-rw-r--r--tests/ui/issues/issue-10456.rs24
-rw-r--r--tests/ui/issues/issue-10465.rs23
-rw-r--r--tests/ui/issues/issue-10465.stderr15
-rw-r--r--tests/ui/issues/issue-10545.rs9
-rw-r--r--tests/ui/issues/issue-10545.stderr15
-rw-r--r--tests/ui/issues/issue-10638.rs10
-rw-r--r--tests/ui/issues/issue-10683.rs10
-rw-r--r--tests/ui/issues/issue-10718.rs10
-rw-r--r--tests/ui/issues/issue-10734.rs39
-rw-r--r--tests/ui/issues/issue-10764.rs5
-rw-r--r--tests/ui/issues/issue-10764.stderr19
-rw-r--r--tests/ui/issues/issue-10767.rs7
-rw-r--r--tests/ui/issues/issue-10802.rs45
-rw-r--r--tests/ui/issues/issue-10806.rs38
-rw-r--r--tests/ui/issues/issue-10853.rs14
-rw-r--r--tests/ui/issues/issue-10877.rs16
-rw-r--r--tests/ui/issues/issue-10877.stderr27
-rw-r--r--tests/ui/issues/issue-10902.rs20
-rw-r--r--tests/ui/issues/issue-11004.rs27
-rw-r--r--tests/ui/issues/issue-11004.stderr25
-rw-r--r--tests/ui/issues/issue-11047.rs26
-rw-r--r--tests/ui/issues/issue-11085.rs44
-rw-r--r--tests/ui/issues/issue-11192.rs22
-rw-r--r--tests/ui/issues/issue-11192.stderr17
-rw-r--r--tests/ui/issues/issue-11205.rs84
-rw-r--r--tests/ui/issues/issue-11267.rs19
-rw-r--r--tests/ui/issues/issue-11374.rs28
-rw-r--r--tests/ui/issues/issue-11374.stderr33
37 files changed, 0 insertions, 845 deletions
diff --git a/tests/ui/issues/issue-10228.rs b/tests/ui/issues/issue-10228.rs
deleted file mode 100644
index a59ccf926f9..00000000000
--- a/tests/ui/issues/issue-10228.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-//@ run-pass
-#![allow(dead_code)]
-#![allow(unused_variables)]
-
-enum StdioContainer {
-    CreatePipe(bool)
-}
-
-struct Test<'a> {
-    args: &'a [String],
-    io: &'a [StdioContainer]
-}
-
-pub fn main() {
-    let test = Test {
-        args: &[],
-        io: &[StdioContainer::CreatePipe(true)]
-    };
-}
diff --git a/tests/ui/issues/issue-10291.rs b/tests/ui/issues/issue-10291.rs
deleted file mode 100644
index 31b9e124046..00000000000
--- a/tests/ui/issues/issue-10291.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-fn test<'x>(x: &'x isize) {
-    drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
-        x
-        //~^ ERROR lifetime may not live long enough
-    }));
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-10291.stderr b/tests/ui/issues/issue-10291.stderr
deleted file mode 100644
index 68ed9a0de5d..00000000000
--- a/tests/ui/issues/issue-10291.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error: lifetime may not live long enough
-  --> $DIR/issue-10291.rs:3:9
-   |
-LL | fn test<'x>(x: &'x isize) {
-   |         -- lifetime `'x` defined here
-LL |     drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
-LL |         x
-   |         ^ returning this value requires that `'x` must outlive `'static`
-
-error: aborting due to 1 previous error
-
diff --git a/tests/ui/issues/issue-102964.rs b/tests/ui/issues/issue-102964.rs
deleted file mode 100644
index 43ff2360076..00000000000
--- a/tests/ui/issues/issue-102964.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use std::rc::Rc;
-type Foo<'a, T> = &'a dyn Fn(&T);
-type RcFoo<'a, T> = Rc<Foo<'a, T>>;
-
-fn bar_function<T>(function: Foo<T>) -> RcFoo<T> {
-    //~^ ERROR mismatched types
-    let rc = Rc::new(function);
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-102964.stderr b/tests/ui/issues/issue-102964.stderr
deleted file mode 100644
index 0e2761f3f57..00000000000
--- a/tests/ui/issues/issue-102964.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-error[E0308]: mismatched types
-  --> $DIR/issue-102964.rs:5:41
-   |
-LL | fn bar_function<T>(function: Foo<T>) -> RcFoo<T> {
-   |    ------------                         ^^^^^^^^ expected `Rc<&dyn Fn(&T)>`, found `()`
-   |    |
-   |    implicitly returns `()` as its body has no tail or `return` expression
-   |
-   = note: expected struct `Rc<&dyn for<'a> Fn(&'a T)>`
-           found unit type `()`
-help: consider returning the local binding `rc`
-   |
-LL ~     let rc = Rc::new(function);
-LL +     rc
-   |
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0308`.
diff --git a/tests/ui/issues/issue-10396.rs b/tests/ui/issues/issue-10396.rs
deleted file mode 100644
index 082216d557c..00000000000
--- a/tests/ui/issues/issue-10396.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-//@ check-pass
-#![allow(dead_code)]
-#[derive(Debug)]
-enum Foo<'s> {
-    V(&'s str)
-}
-
-fn f(arr: &[&Foo]) {
-    for &f in arr {
-        println!("{:?}", f);
-    }
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-10412.rs b/tests/ui/issues/issue-10412.rs
deleted file mode 100644
index 68ce0c2ea3c..00000000000
--- a/tests/ui/issues/issue-10412.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-trait Serializable<'self, T> {
-    //~^ ERROR lifetimes cannot use keyword names
-    fn serialize(val: &'self T) -> Vec<u8>; //~ ERROR lifetimes cannot use keyword names
-    fn deserialize(repr: &[u8]) -> &'self T; //~ ERROR lifetimes cannot use keyword names
-}
-
-impl<'self> Serializable<str> for &'self str {
-    //~^ ERROR lifetimes cannot use keyword names
-    //~| ERROR lifetimes cannot use keyword names
-    //~| ERROR implicit elided lifetime not allowed here
-    fn serialize(val: &'self str) -> Vec<u8> {
-        //~^ ERROR lifetimes cannot use keyword names
-        vec![1]
-    }
-    fn deserialize(repr: &[u8]) -> &'self str {
-        //~^ ERROR lifetimes cannot use keyword names
-        "hi"
-    }
-}
-
-fn main() {
-    println!("hello");
-    let x = "foo".to_string();
-    let y = x;
-    println!("{}", y);
-}
diff --git a/tests/ui/issues/issue-10412.stderr b/tests/ui/issues/issue-10412.stderr
deleted file mode 100644
index c74ba1306cc..00000000000
--- a/tests/ui/issues/issue-10412.stderr
+++ /dev/null
@@ -1,56 +0,0 @@
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:1:20
-   |
-LL | trait Serializable<'self, T> {
-   |                    ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:3:24
-   |
-LL |     fn serialize(val: &'self T) -> Vec<u8>;
-   |                        ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:4:37
-   |
-LL |     fn deserialize(repr: &[u8]) -> &'self T;
-   |                                     ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:7:6
-   |
-LL | impl<'self> Serializable<str> for &'self str {
-   |      ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:7:36
-   |
-LL | impl<'self> Serializable<str> for &'self str {
-   |                                    ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:11:24
-   |
-LL |     fn serialize(val: &'self str) -> Vec<u8> {
-   |                        ^^^^^
-
-error: lifetimes cannot use keyword names
-  --> $DIR/issue-10412.rs:15:37
-   |
-LL |     fn deserialize(repr: &[u8]) -> &'self str {
-   |                                     ^^^^^
-
-error[E0726]: implicit elided lifetime not allowed here
-  --> $DIR/issue-10412.rs:7:13
-   |
-LL | impl<'self> Serializable<str> for &'self str {
-   |             ^^^^^^^^^^^^^^^^^ expected lifetime parameter
-   |
-help: indicate the anonymous lifetime
-   |
-LL | impl<'self> Serializable<'_, str> for &'self str {
-   |                          +++
-
-error: aborting due to 8 previous errors
-
-For more information about this error, try `rustc --explain E0726`.
diff --git a/tests/ui/issues/issue-10436.rs b/tests/ui/issues/issue-10436.rs
deleted file mode 100644
index 672aa2464dc..00000000000
--- a/tests/ui/issues/issue-10436.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-//@ run-pass
-fn works<T>(x: T) -> Vec<T> { vec![x] }
-
-fn also_works<T: Clone>(x: T) -> Vec<T> { vec![x] }
-
-fn main() {
-    let _: Vec<usize> = works(0);
-    let _: Vec<usize> = also_works(0);
-    let _ = works(0);
-    let _ = also_works(0);
-}
diff --git a/tests/ui/issues/issue-10456.rs b/tests/ui/issues/issue-10456.rs
deleted file mode 100644
index 51c740fd729..00000000000
--- a/tests/ui/issues/issue-10456.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-//@ check-pass
-
-pub struct Foo;
-
-pub trait Bar {
-    fn bar(&self);
-}
-
-pub trait Baz {
-    fn baz(&self) { }
-}
-
-impl<T: Baz> Bar for T {
-    fn bar(&self) {}
-}
-
-impl Baz for Foo {}
-
-pub fn foo(t: Box<Foo>) {
-    t.bar(); // ~Foo doesn't implement Baz
-    (*t).bar(); // ok b/c Foo implements Baz
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-10465.rs b/tests/ui/issues/issue-10465.rs
deleted file mode 100644
index d899c3ffa91..00000000000
--- a/tests/ui/issues/issue-10465.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-pub mod a {
-    pub trait A {
-        fn foo(&self);
-    }
-
-}
-pub mod b {
-    use a::A;
-
-    pub struct B;
-    impl A for B { fn foo(&self) {} }
-
-    pub mod c {
-        use b::B;
-
-        fn foo(b: &B) {
-            b.foo(); //~ ERROR: no method named `foo` found
-        }
-    }
-
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-10465.stderr b/tests/ui/issues/issue-10465.stderr
deleted file mode 100644
index 0f46ebe505a..00000000000
--- a/tests/ui/issues/issue-10465.stderr
+++ /dev/null
@@ -1,15 +0,0 @@
-error[E0599]: no method named `foo` found for reference `&B` in the current scope
-  --> $DIR/issue-10465.rs:17:15
-   |
-LL |             b.foo();
-   |               ^^^ method not found in `&B`
-   |
-   = help: items from traits can only be used if the trait is in scope
-help: trait `A` which provides `foo` is implemented but not in scope; perhaps you want to import it
-   |
-LL +         use a::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-10545.rs b/tests/ui/issues/issue-10545.rs
deleted file mode 100644
index acd07149619..00000000000
--- a/tests/ui/issues/issue-10545.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-mod a {
-    struct S;
-    impl S { }
-}
-
-fn foo(_: a::S) { //~ ERROR: struct `S` is private
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-10545.stderr b/tests/ui/issues/issue-10545.stderr
deleted file mode 100644
index 9aa04217174..00000000000
--- a/tests/ui/issues/issue-10545.stderr
+++ /dev/null
@@ -1,15 +0,0 @@
-error[E0603]: struct `S` is private
-  --> $DIR/issue-10545.rs:6:14
-   |
-LL | fn foo(_: a::S) {
-   |              ^ private struct
-   |
-note: the struct `S` is defined here
-  --> $DIR/issue-10545.rs:2:5
-   |
-LL |     struct S;
-   |     ^^^^^^^^^
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0603`.
diff --git a/tests/ui/issues/issue-10638.rs b/tests/ui/issues/issue-10638.rs
deleted file mode 100644
index c6c6939bda5..00000000000
--- a/tests/ui/issues/issue-10638.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-//@ run-pass
-
-pub fn main() {
-    //// I am not a doc comment!
-    ////////////////// still not a doc comment
-    /////**** nope, me neither */
-    /*** And neither am I! */
-    5;
-    /*****! certainly not I */
-}
diff --git a/tests/ui/issues/issue-10683.rs b/tests/ui/issues/issue-10683.rs
deleted file mode 100644
index 5657ec1864b..00000000000
--- a/tests/ui/issues/issue-10683.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-//@ run-pass
-
-static NAME: &'static str = "hello world";
-
-fn main() {
-    match &*NAME.to_ascii_lowercase() {
-        "foo" => {}
-        _ => {}
-    }
-}
diff --git a/tests/ui/issues/issue-10718.rs b/tests/ui/issues/issue-10718.rs
deleted file mode 100644
index 68ac0bbe49f..00000000000
--- a/tests/ui/issues/issue-10718.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-//@ run-pass
-
-fn f<F:FnOnce()>(p: F) {
-    p();
-}
-
-pub fn main() {
-    let p = || ();
-    f(p);
-}
diff --git a/tests/ui/issues/issue-10734.rs b/tests/ui/issues/issue-10734.rs
deleted file mode 100644
index 6d815aeca07..00000000000
--- a/tests/ui/issues/issue-10734.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-//@ run-pass
-#![allow(non_upper_case_globals)]
-
-// FIXME(static_mut_refs): this could use an atomic
-#![allow(static_mut_refs)]
-
-static mut drop_count: usize = 0;
-
-struct Foo {
-    dropped: bool
-}
-
-impl Drop for Foo {
-    fn drop(&mut self) {
-        // Test to make sure we haven't dropped already
-        assert!(!self.dropped);
-        self.dropped = true;
-        // And record the fact that we dropped for verification later
-        unsafe { drop_count += 1; }
-    }
-}
-
-pub fn main() {
-    // An `if true { expr }` statement should compile the same as `{ expr }`.
-    if true {
-        let _a = Foo{ dropped: false };
-    }
-    // Check that we dropped already (as expected from a `{ expr }`).
-    unsafe { assert_eq!(drop_count, 1); }
-
-    // An `if false {} else { expr }` statement should compile the same as `{ expr }`.
-    if false {
-        panic!();
-    } else {
-        let _a = Foo{ dropped: false };
-    }
-    // Check that we dropped already (as expected from a `{ expr }`).
-    unsafe { assert_eq!(drop_count, 2); }
-}
diff --git a/tests/ui/issues/issue-10764.rs b/tests/ui/issues/issue-10764.rs
deleted file mode 100644
index bb915f58d9d..00000000000
--- a/tests/ui/issues/issue-10764.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-fn f(_: extern "Rust" fn()) {}
-extern "C" fn bar() {}
-
-fn main() { f(bar) }
-//~^ ERROR mismatched types
diff --git a/tests/ui/issues/issue-10764.stderr b/tests/ui/issues/issue-10764.stderr
deleted file mode 100644
index f3bd0100a72..00000000000
--- a/tests/ui/issues/issue-10764.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-error[E0308]: mismatched types
-  --> $DIR/issue-10764.rs:4:15
-   |
-LL | fn main() { f(bar) }
-   |             - ^^^ expected "Rust" fn, found "C" fn
-   |             |
-   |             arguments to this function are incorrect
-   |
-   = note: expected fn pointer `fn()`
-                 found fn item `extern "C" fn() {bar}`
-note: function defined here
-  --> $DIR/issue-10764.rs:1:4
-   |
-LL | fn f(_: extern "Rust" fn()) {}
-   |    ^ ---------------------
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0308`.
diff --git a/tests/ui/issues/issue-10767.rs b/tests/ui/issues/issue-10767.rs
deleted file mode 100644
index 2060d15b4c7..00000000000
--- a/tests/ui/issues/issue-10767.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-//@ run-pass
-
-pub fn main() {
-    fn f() {
-    }
-    let _: Box<fn()> = Box::new(f as fn());
-}
diff --git a/tests/ui/issues/issue-10802.rs b/tests/ui/issues/issue-10802.rs
deleted file mode 100644
index eca701ce98c..00000000000
--- a/tests/ui/issues/issue-10802.rs
+++ /dev/null
@@ -1,45 +0,0 @@
-//@ run-pass
-#![allow(dead_code)]
-
-struct DroppableStruct;
-enum DroppableEnum {
-    DroppableVariant1, DroppableVariant2
-}
-
-static mut DROPPED: bool = false;
-
-impl Drop for DroppableStruct {
-    fn drop(&mut self) {
-        unsafe { DROPPED = true; }
-    }
-}
-impl Drop for DroppableEnum {
-    fn drop(&mut self) {
-        unsafe { DROPPED = true; }
-    }
-}
-
-trait MyTrait { fn dummy(&self) { } }
-impl MyTrait for Box<DroppableStruct> {}
-impl MyTrait for Box<DroppableEnum> {}
-
-struct Whatever { w: Box<dyn MyTrait+'static> }
-impl  Whatever {
-    fn new(w: Box<dyn MyTrait+'static>) -> Whatever {
-        Whatever { w: w }
-    }
-}
-
-fn main() {
-    {
-        let f: Box<_> = Box::new(DroppableStruct);
-        let _a = Whatever::new(Box::new(f) as Box<dyn MyTrait>);
-    }
-    assert!(unsafe { DROPPED });
-    unsafe { DROPPED = false; }
-    {
-        let f: Box<_> = Box::new(DroppableEnum::DroppableVariant1);
-        let _a = Whatever::new(Box::new(f) as Box<dyn MyTrait>);
-    }
-    assert!(unsafe { DROPPED });
-}
diff --git a/tests/ui/issues/issue-10806.rs b/tests/ui/issues/issue-10806.rs
deleted file mode 100644
index 31315dc7c93..00000000000
--- a/tests/ui/issues/issue-10806.rs
+++ /dev/null
@@ -1,38 +0,0 @@
-//@ edition: 2015
-//@ run-pass
-#![allow(unused_imports)]
-
-
-pub fn foo() -> isize {
-    3
-}
-pub fn bar() -> isize {
-    4
-}
-
-pub mod baz {
-    use {foo, bar};
-    pub fn quux() -> isize {
-        foo() + bar()
-    }
-}
-
-pub mod grault {
-    use {foo};
-    pub fn garply() -> isize {
-        foo()
-    }
-}
-
-pub mod waldo {
-    use {};
-    pub fn plugh() -> isize {
-        0
-    }
-}
-
-pub fn main() {
-    let _x = baz::quux();
-    let _y = grault::garply();
-    let _z = waldo::plugh();
-}
diff --git a/tests/ui/issues/issue-10853.rs b/tests/ui/issues/issue-10853.rs
deleted file mode 100644
index 4c22393d9c0..00000000000
--- a/tests/ui/issues/issue-10853.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-//@ check-pass
-
-#![deny(missing_docs)]
-#![doc="module"]
-
-#[doc="struct"]
-pub struct Foo;
-
-pub fn foo() {
-    #![doc="fn"]
-}
-
-#[doc="main"]
-pub fn main() {}
diff --git a/tests/ui/issues/issue-10877.rs b/tests/ui/issues/issue-10877.rs
deleted file mode 100644
index 15a383175b9..00000000000
--- a/tests/ui/issues/issue-10877.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-struct Foo {
-    x: isize,
-}
-extern "C" {
-    fn foo(1: ());
-    //~^ ERROR: patterns aren't allowed in foreign function declarations
-    fn bar((): isize);
-    //~^ ERROR: patterns aren't allowed in foreign function declarations
-    fn baz(Foo { x }: isize);
-    //~^ ERROR: patterns aren't allowed in foreign function declarations
-    fn qux((x, y): ());
-    //~^ ERROR: patterns aren't allowed in foreign function declarations
-    fn this_is_actually_ok(a: usize);
-    fn and_so_is_this(_: usize);
-}
-fn main() {}
diff --git a/tests/ui/issues/issue-10877.stderr b/tests/ui/issues/issue-10877.stderr
deleted file mode 100644
index bd3797cba55..00000000000
--- a/tests/ui/issues/issue-10877.stderr
+++ /dev/null
@@ -1,27 +0,0 @@
-error[E0130]: patterns aren't allowed in foreign function declarations
-  --> $DIR/issue-10877.rs:5:12
-   |
-LL |     fn foo(1: ());
-   |            ^ pattern not allowed in foreign function
-
-error[E0130]: patterns aren't allowed in foreign function declarations
-  --> $DIR/issue-10877.rs:7:12
-   |
-LL |     fn bar((): isize);
-   |            ^^ pattern not allowed in foreign function
-
-error[E0130]: patterns aren't allowed in foreign function declarations
-  --> $DIR/issue-10877.rs:9:12
-   |
-LL |     fn baz(Foo { x }: isize);
-   |            ^^^^^^^^^ pattern not allowed in foreign function
-
-error[E0130]: patterns aren't allowed in foreign function declarations
-  --> $DIR/issue-10877.rs:11:12
-   |
-LL |     fn qux((x, y): ());
-   |            ^^^^^^ pattern not allowed in foreign function
-
-error: aborting due to 4 previous errors
-
-For more information about this error, try `rustc --explain E0130`.
diff --git a/tests/ui/issues/issue-10902.rs b/tests/ui/issues/issue-10902.rs
deleted file mode 100644
index 7cdf8808aa0..00000000000
--- a/tests/ui/issues/issue-10902.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-//@ check-pass
-#![allow(dead_code)]
-
-pub mod two_tuple {
-    pub trait T { fn dummy(&self) { } }
-    pub struct P<'a>(&'a (dyn T + 'a), &'a (dyn T + 'a));
-    pub fn f<'a>(car: &'a dyn T, cdr: &'a dyn T) -> P<'a> {
-        P(car, cdr)
-    }
-}
-
-pub mod two_fields {
-    pub trait T { fn dummy(&self) { } }
-    pub struct P<'a> { car: &'a (dyn T + 'a), cdr: &'a (dyn T + 'a) }
-    pub fn f<'a>(car: &'a dyn T, cdr: &'a dyn T) -> P<'a> {
-        P{ car: car, cdr: cdr }
-    }
-}
-
-fn main() {}
diff --git a/tests/ui/issues/issue-11004.rs b/tests/ui/issues/issue-11004.rs
deleted file mode 100644
index 0c34554c12d..00000000000
--- a/tests/ui/issues/issue-11004.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use std::mem;
-
-struct A { x: i32, y: f64 }
-
-#[cfg(not(FALSE))]
-unsafe fn access(n:*mut A) -> (i32, f64) {
-    let x : i32 = n.x; //~ ERROR no field `x` on type `*mut A`
-    let y : f64 = n.y; //~ ERROR no field `y` on type `*mut A`
-    (x, y)
-}
-
-#[cfg(false)]
-unsafe fn access(n:*mut A) -> (i32, f64) {
-    let x : i32 = (*n).x;
-    let y : f64 = (*n).y;
-    (x, y)
-}
-
-fn main() {
-    let a :  A = A { x: 3, y: 3.14 };
-    let p : &A = &a;
-    let (x,y) = unsafe {
-        let n : *mut A = mem::transmute(p);
-        access(n)
-    };
-    println!("x: {}, y: {}", x, y);
-}
diff --git a/tests/ui/issues/issue-11004.stderr b/tests/ui/issues/issue-11004.stderr
deleted file mode 100644
index 6d157c91130..00000000000
--- a/tests/ui/issues/issue-11004.stderr
+++ /dev/null
@@ -1,25 +0,0 @@
-error[E0609]: no field `x` on type `*mut A`
-  --> $DIR/issue-11004.rs:7:21
-   |
-LL |     let x : i32 = n.x;
-   |                     ^ unknown field
-   |
-help: `n` is a raw pointer; try dereferencing it
-   |
-LL |     let x : i32 = (*n).x;
-   |                   ++ +
-
-error[E0609]: no field `y` on type `*mut A`
-  --> $DIR/issue-11004.rs:8:21
-   |
-LL |     let y : f64 = n.y;
-   |                     ^ unknown field
-   |
-help: `n` is a raw pointer; try dereferencing it
-   |
-LL |     let y : f64 = (*n).y;
-   |                   ++ +
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0609`.
diff --git a/tests/ui/issues/issue-11047.rs b/tests/ui/issues/issue-11047.rs
deleted file mode 100644
index 6e1b2856afc..00000000000
--- a/tests/ui/issues/issue-11047.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//@ run-pass
-// Test that static methods can be invoked on `type` aliases
-
-#![allow(unused_variables)]
-
-pub mod foo {
-    pub mod bar {
-        pub mod baz {
-            pub struct Qux;
-
-            impl Qux {
-                pub fn new() {}
-            }
-        }
-    }
-}
-
-fn main() {
-
-    type Ham = foo::bar::baz::Qux;
-    let foo: () = foo::bar::baz::Qux::new();  // invoke directly
-    let bar: () = Ham::new();                 // invoke via type alias
-
-    type StringVec = Vec<String>;
-    let sv = StringVec::new();
-}
diff --git a/tests/ui/issues/issue-11085.rs b/tests/ui/issues/issue-11085.rs
deleted file mode 100644
index c3f13199b30..00000000000
--- a/tests/ui/issues/issue-11085.rs
+++ /dev/null
@@ -1,44 +0,0 @@
-//@ run-pass
-
-#![allow(dead_code)]
-
-struct Foo {
-    #[cfg(false)]
-    bar: baz,
-    foo: isize,
-}
-
-struct Foo2 {
-    #[cfg(all())]
-    foo: isize,
-}
-
-enum Bar1 {
-    Bar1_1,
-    #[cfg(false)]
-    Bar1_2(NotAType),
-}
-
-enum Bar2 {
-    #[cfg(false)]
-    Bar2_1(NotAType),
-}
-
-enum Bar3 {
-    Bar3_1 {
-        #[cfg(false)]
-        foo: isize,
-        bar: isize,
-    }
-}
-
-pub fn main() {
-    let _f = Foo { foo: 3 };
-    let _f = Foo2 { foo: 3 };
-
-    match Bar1::Bar1_1 {
-        Bar1::Bar1_1 => {}
-    }
-
-    let _f = Bar3::Bar3_1 { bar: 3 };
-}
diff --git a/tests/ui/issues/issue-11192.rs b/tests/ui/issues/issue-11192.rs
deleted file mode 100644
index 1a3d8c9fe58..00000000000
--- a/tests/ui/issues/issue-11192.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-struct Foo {
-    x: isize
-}
-
-
-impl Drop for Foo {
-    fn drop(&mut self) {
-        println!("drop {}", self.x);
-    }
-}
-
-
-fn main() {
-    let mut ptr: Box<_> = Box::new(Foo { x: 0 });
-    let mut test = |foo: &Foo| {
-        println!("access {}", foo.x);
-        ptr = Box::new(Foo { x: ptr.x + 1 });
-        println!("access {}", foo.x);
-    };
-    test(&*ptr);
-    //~^ ERROR: cannot borrow `*ptr` as immutable
-}
diff --git a/tests/ui/issues/issue-11192.stderr b/tests/ui/issues/issue-11192.stderr
deleted file mode 100644
index a8a18c49549..00000000000
--- a/tests/ui/issues/issue-11192.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0502]: cannot borrow `*ptr` as immutable because it is also borrowed as mutable
-  --> $DIR/issue-11192.rs:20:10
-   |
-LL |     let mut test = |foo: &Foo| {
-   |                    ----------- mutable borrow occurs here
-LL |         println!("access {}", foo.x);
-LL |         ptr = Box::new(Foo { x: ptr.x + 1 });
-   |         --- first borrow occurs due to use of `ptr` in closure
-...
-LL |     test(&*ptr);
-   |     ---- ^^^^^ immutable borrow occurs here
-   |     |
-   |     mutable borrow later used by call
-
-error: aborting due to 1 previous error
-
-For more information about this error, try `rustc --explain E0502`.
diff --git a/tests/ui/issues/issue-11205.rs b/tests/ui/issues/issue-11205.rs
deleted file mode 100644
index 8530514f0ed..00000000000
--- a/tests/ui/issues/issue-11205.rs
+++ /dev/null
@@ -1,84 +0,0 @@
-//@ run-pass
-
-#![allow(dead_code)]
-
-trait Foo { fn dummy(&self) { } }
-impl Foo for isize {}
-fn foo(_: [&dyn Foo; 2]) {}
-fn foos(_: &[&dyn Foo]) {}
-fn foog<T>(_: &[T], _: &[T]) {}
-
-fn bar(_: [Box<dyn Foo>; 2]) {}
-fn bars(_: &[Box<dyn Foo+'static>]) {}
-
-fn main() {
-    let x: [&dyn Foo; 2] = [&1, &2];
-    foo(x);
-    foo([&1, &2]);
-
-    let r = &1;
-    let x: [&dyn Foo; 2] = [r; 2];
-    foo(x);
-    foo([&1; 2]);
-
-    let x: &[&dyn Foo] = &[&1, &2];
-    foos(x);
-    foos(&[&1, &2]);
-
-    let x: &[&dyn Foo] = &[&1, &2];
-    let r = &1;
-    foog(x, &[r]);
-
-    let x: [Box<dyn Foo>; 2] = [Box::new(1), Box::new(2)];
-    bar(x);
-    bar([Box::new(1), Box::new(2)]);
-
-    let x: &[Box<dyn Foo+'static>] = &[Box::new(1), Box::new(2)];
-    bars(x);
-    bars(&[Box::new(1), Box::new(2)]);
-
-    let x: &[Box<dyn Foo+'static>] = &[Box::new(1), Box::new(2)];
-    foog(x, &[Box::new(1)]);
-
-    struct T<'a> {
-        t: [&'a (dyn Foo+'a); 2]
-    }
-    let _n = T {
-        t: [&1, &2]
-    };
-    let r = &1;
-    let _n = T {
-        t: [r; 2]
-    };
-    let x: [&dyn Foo; 2] = [&1, &2];
-    let _n = T {
-        t: x
-    };
-
-    struct F<'b> {
-        t: &'b [&'b (dyn Foo+'b)]
-    }
-    let _n = F {
-        t: &[&1, &2]
-    };
-    let r = &1;
-    let r: [&dyn Foo; 2] = [r; 2];
-    let _n = F {
-        t: &r
-    };
-    let x: [&dyn Foo; 2] = [&1, &2];
-    let _n = F {
-        t: &x
-    };
-
-    struct M<'a> {
-        t: &'a [Box<dyn Foo+'static>]
-    }
-    let _n = M {
-        t: &[Box::new(1), Box::new(2)]
-    };
-    let x: [Box<dyn Foo>; 2] = [Box::new(1), Box::new(2)];
-    let _n = M {
-        t: &x
-    };
-}
diff --git a/tests/ui/issues/issue-11267.rs b/tests/ui/issues/issue-11267.rs
deleted file mode 100644
index 036ad1d54ed..00000000000
--- a/tests/ui/issues/issue-11267.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-//@ run-pass
-// Tests that unary structs can be mutably borrowed.
-
-struct Empty;
-
-trait T<U> {
-    fn next(&mut self) -> Option<U>;
-}
-impl T<isize> for Empty {
-    fn next(&mut self) -> Option<isize> { None }
-}
-
-fn do_something_with(a : &mut dyn T<isize>) {
-    println!("{:?}", a.next())
-}
-
-pub fn main() {
-    do_something_with(&mut Empty);
-}
diff --git a/tests/ui/issues/issue-11374.rs b/tests/ui/issues/issue-11374.rs
deleted file mode 100644
index 60ee256c65a..00000000000
--- a/tests/ui/issues/issue-11374.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use std::io::{self, Read};
-use std::vec;
-
-pub struct Container<'a> {
-    reader: &'a mut dyn Read
-}
-
-impl<'a> Container<'a> {
-    pub fn wrap<'s>(reader: &'s mut dyn io::Read) -> Container<'s> {
-        Container { reader: reader }
-    }
-
-    pub fn read_to(&mut self, vec: &mut [u8]) {
-        self.reader.read(vec);
-    }
-}
-
-pub fn for_stdin<'a>() -> Container<'a> {
-    let mut r = io::stdin();
-    Container::wrap(&mut r as &mut dyn io::Read)
-    //~^ ERROR cannot return value referencing local variable
-}
-
-fn main() {
-    let mut c = for_stdin();
-    let mut v = Vec::new();
-    c.read_to(v); //~ ERROR E0308
-}
diff --git a/tests/ui/issues/issue-11374.stderr b/tests/ui/issues/issue-11374.stderr
deleted file mode 100644
index 3ae5cfc79f8..00000000000
--- a/tests/ui/issues/issue-11374.stderr
+++ /dev/null
@@ -1,33 +0,0 @@
-error[E0308]: mismatched types
-  --> $DIR/issue-11374.rs:27:15
-   |
-LL |     c.read_to(v);
-   |       ------- ^ expected `&mut [u8]`, found `Vec<_>`
-   |       |
-   |       arguments to this method are incorrect
-   |
-   = note: expected mutable reference `&mut [u8]`
-                         found struct `Vec<_>`
-note: method defined here
-  --> $DIR/issue-11374.rs:13:12
-   |
-LL |     pub fn read_to(&mut self, vec: &mut [u8]) {
-   |            ^^^^^^^            --------------
-help: consider mutably borrowing here
-   |
-LL |     c.read_to(&mut v);
-   |               ++++
-
-error[E0515]: cannot return value referencing local variable `r`
-  --> $DIR/issue-11374.rs:20:5
-   |
-LL |     Container::wrap(&mut r as &mut dyn io::Read)
-   |     ^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^^^
-   |     |               |
-   |     |               `r` is borrowed here
-   |     returns a value referencing data owned by the current function
-
-error: aborting due to 2 previous errors
-
-Some errors have detailed explanations: E0308, E0515.
-For more information about an error, try `rustc --explain E0308`.