diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-18 22:06:07 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-25 20:38:54 +0500 |
| commit | e9959aa74e23eb340d6c9e9a4eab807be03b028f (patch) | |
| tree | 493df6b8c16382a44c1a8a51d5a1f5f7e416e5a7 /tests/ui/issues | |
| parent | 9f38ca97eab53ba2f431a48bec2343ef52335714 (diff) | |
| download | rust-e9959aa74e23eb340d6c9e9a4eab807be03b028f.tar.gz rust-e9959aa74e23eb340d6c9e9a4eab807be03b028f.zip | |
comments
Diffstat (limited to 'tests/ui/issues')
| -rw-r--r-- | tests/ui/issues/issue-10291.stderr | 11 | ||||
| -rw-r--r-- | tests/ui/issues/issue-102964.stderr | 19 | ||||
| -rw-r--r-- | tests/ui/issues/issue-10412.stderr | 56 | ||||
| -rw-r--r-- | tests/ui/issues/issue-10465.stderr | 15 | ||||
| -rw-r--r-- | tests/ui/issues/issue-10545.stderr | 15 | ||||
| -rw-r--r-- | tests/ui/issues/issue-106755.stderr | 47 | ||||
| -rw-r--r-- | tests/ui/issues/issue-10764.stderr | 19 | ||||
| -rw-r--r-- | tests/ui/issues/issue-10877.stderr | 27 | ||||
| -rw-r--r-- | tests/ui/issues/issue-11004.stderr | 25 | ||||
| -rw-r--r-- | tests/ui/issues/issue-11192.stderr | 17 | ||||
| -rw-r--r-- | tests/ui/issues/issue-11374.stderr | 33 |
11 files changed, 0 insertions, 284 deletions
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.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-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-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.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-106755.stderr b/tests/ui/issues/issue-106755.stderr deleted file mode 100644 index da6b8c5c563..00000000000 --- a/tests/ui/issues/issue-106755.stderr +++ /dev/null @@ -1,47 +0,0 @@ -error[E0751]: found both positive and negative implementation of trait `Send` for type `TestType<_>`: - --> $DIR/issue-106755.rs:13:1 - | -LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {} - | ------------------------------------------------------ positive implementation here -LL | -LL | impl<T: MyTrait> !Send for TestType<T> {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here - -error[E0119]: conflicting implementations of trait `Send` for type `TestType<_>` - --> $DIR/issue-106755.rs:17:1 - | -LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {} - | ------------------------------------------------------ first implementation here -... -LL | unsafe impl<T: 'static> Send for TestType<T> {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>` - -error[E0367]: `!Send` impl requires `T: MyTrait` but the struct it is implemented for does not - --> $DIR/issue-106755.rs:13:9 - | -LL | impl<T: MyTrait> !Send for TestType<T> {} - | ^^^^^^^ - | -note: the implementor must specify the same requirement - --> $DIR/issue-106755.rs:9:1 - | -LL | struct TestType<T>(::std::marker::PhantomData<T>); - | ^^^^^^^^^^^^^^^^^^ - -error[E0366]: `!Send` impls cannot be specialized - --> $DIR/issue-106755.rs:19:1 - | -LL | impl !Send for TestType<i32> {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `i32` is not a generic parameter -note: use the same sequence of generic lifetime, type and const parameters as the struct definition - --> $DIR/issue-106755.rs:9:1 - | -LL | struct TestType<T>(::std::marker::PhantomData<T>); - | ^^^^^^^^^^^^^^^^^^ - -error: aborting due to 4 previous errors - -Some errors have detailed explanations: E0119, E0366, E0367, E0751. -For more information about an error, try `rustc --explain E0119`. 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-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-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-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-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`. |
