add tests metadata, regenerate stderr

This commit is contained in:
tuturuu 2026-01-16 18:15:09 +01:00
parent bad82f22a9
commit 9d1a1ae298
No known key found for this signature in database
GPG key ID: B352C3C2894405A7
10 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,4 @@
//! regression test for <https://github.com/rust-lang/rust/issues/16683>
trait T<'a> {
fn a(&'a self) -> &'a bool;
fn b(&self) {

View file

@ -1,5 +1,5 @@
error: lifetime may not live long enough
--> $DIR/elided-self-lifetime-in-trait-fn.rs:4:9
--> $DIR/elided-self-lifetime-in-trait-fn.rs:5:9
|
LL | trait T<'a> {
| -- lifetime `'a` defined here

View file

@ -1,3 +1,4 @@
//! regression test for <https://github.com/rust-lang/rust/issues/17405>
enum Foo {
Bar(isize)
}

View file

@ -1,5 +1,5 @@
error[E0574]: expected struct, variant or union type, found enum `Foo`
--> $DIR/struct_pattern_on_tuple_enum_in_match.rs:7:9
--> $DIR/struct_pattern_on_tuple_enum_in_match.rs:8:9
|
LL | Foo { i } => ()
| ^^^ not a struct, variant or union type

View file

@ -1,3 +1,4 @@
//! regression test for <https://github.com/rust-lang/rust/issues/18389>
//@ check-pass
use std::any::Any;

View file

@ -1,5 +1,5 @@
warning: trait `Private<<Self as Public>::P, <Self as Public>::R>` is more private than the item `Public`
--> $DIR/trait_more_private_than_item.rs:9:1
--> $DIR/trait_more_private_than_item.rs:10:1
|
LL | / pub trait Public: Private<
LL | |
@ -9,7 +9,7 @@ LL | | > {
| |_^ trait `Public` is reachable at visibility `pub`
|
note: but trait `Private<<Self as Public>::P, <Self as Public>::R>` is only usable at visibility `pub(crate)`
--> $DIR/trait_more_private_than_item.rs:6:1
--> $DIR/trait_more_private_than_item.rs:7:1
|
LL | trait Private<P, R> {
| ^^^^^^^^^^^^^^^^^^^

View file

@ -1,3 +1,4 @@
//! regression test for <https://github.com/rust-lang/rust/issues/18119>
const X: u8 = 1;
static Y: u8 = 1;
fn foo() {}

View file

@ -1,17 +1,17 @@
error[E0573]: expected type, found constant `X`
--> $DIR/impl-on-non-type.rs:5:6
--> $DIR/impl-on-non-type.rs:6:6
|
LL | impl X {}
| ^ not a type
error[E0573]: expected type, found static `Y`
--> $DIR/impl-on-non-type.rs:7:6
--> $DIR/impl-on-non-type.rs:8:6
|
LL | impl Y {}
| ^ not a type
error[E0573]: expected type, found function `foo`
--> $DIR/impl-on-non-type.rs:9:6
--> $DIR/impl-on-non-type.rs:10:6
|
LL | impl foo {}
| ^^^ not a type

View file

@ -1,3 +1,4 @@
//! regression test for <https://github.com/rust-lang/rust/issues/17994>
trait Tr {}
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is never used
fn main() {}

View file

@ -1,5 +1,5 @@
error[E0091]: type parameter `T` is never used
--> $DIR/unused_type_parameter.rs:2:10
--> $DIR/unused_type_parameter.rs:3:10
|
LL | type Huh<T> where T: Tr = isize;
| ^ unused type parameter