update ui tests

This commit is contained in:
lcnr 2022-09-08 15:53:22 +02:00
parent b79a2b3f73
commit dcf30047de
28 changed files with 41 additions and 41 deletions

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to const parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/argument_order.rs:6:32
|
LL | struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
@ -11,7 +11,7 @@ LL | let _: AlsoBad<7, 'static, u32, 'static, 17, u16>;
| ^^^^^^^
|
= note: lifetime arguments must be provided before type arguments
= help: reorder the arguments: lifetimes, then consts: `<'a, 'b, N, T, M, U>`
= help: reorder the arguments: lifetimes, then type or consts: `<'a, 'b, N, T, M, U>`
error: aborting due to 2 previous errors

View File

@ -1,5 +1,5 @@
fn bar<const X: u8, 'a>(_: &'a ()) {
//~^ ERROR lifetime parameters must be declared prior to const parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
}
fn foo<const X: u8, T>(_: &T) {}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to const parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/const-param-before-other-params.rs:1:21
|
LL | fn bar<const X: u8, 'a>(_: &'a ()) {

View File

@ -1,9 +1,9 @@
// Checks that lifetimes cannot be interspersed between consts and types.
struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
//~^ Error lifetime parameters must be declared prior to const parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
//~^ Error lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,10 +1,10 @@
error: lifetime parameters must be declared prior to const parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/intermixed-lifetime.rs:3:28
|
LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
| -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T = u32>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/intermixed-lifetime.rs:6:37
|
LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);

View File

@ -1,4 +1,4 @@
struct Foo<const M: usize = 10, 'a>(&'a u32);
//~^ Error lifetime parameters must be declared prior to const parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to const parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/param-order-err-pretty-prints-default.rs:1:33
|
LL | struct Foo<const M: usize = 10, 'a>(&'a u32);

View File

@ -8,7 +8,7 @@ struct A;
impl A {
pub fn do_things<T, 'a, 'b: 'a>() {
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
println!("panic");
}
}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-59508-1.rs:10:25
|
LL | pub fn do_things<T, 'a, 'b: 'a>() {

View File

@ -8,7 +8,7 @@ struct A;
impl A {
pub fn do_things<'a, 'b: 'a, T>() {
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
println!("panic");
}
}

View File

@ -8,7 +8,7 @@ struct A;
impl A {
pub fn do_things<T, 'a, 'b: 'a>() {
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
println!("panic");
}
}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-59508.rs:10:25
|
LL | pub fn do_things<T, 'a, 'b: 'a>() {

View File

@ -1,4 +1,4 @@
#![crate_type = "lib"]
struct S<T = (), 'a>(&'a T);
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-80512-param-reordering-with-defaults.rs:3:18
|
LL | struct S<T = (), 'a>(&'a T);

View File

@ -1,11 +1,11 @@
#![allow(unused)]
fn first<T, 'a, 'b>() {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn second<'a, T, 'b>() {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn third<T, U, 'a>() {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn fourth<'a, T, 'b, U, 'c, V>() {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,22 +1,22 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/lifetime-before-type-params.rs:2:13
|
LL | fn first<T, 'a, 'b>() {}
| ----^^--^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/lifetime-before-type-params.rs:4:18
|
LL | fn second<'a, T, 'b>() {}
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/lifetime-before-type-params.rs:6:16
|
LL | fn third<T, U, 'a>() {}
| -------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T, U>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/lifetime-before-type-params.rs:8:18
|
LL | fn fourth<'a, T, 'b, U, 'c, V>() {}

View File

@ -1,5 +1,5 @@
enum X<'a, T, 'b> {
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
A(&'a &'b T)
}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-14303-enum.rs:1:15
|
LL | enum X<'a, T, 'b> {

View File

@ -1,4 +1,4 @@
fn foo<'a, T, 'b>(x: &'a T) {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-14303-fn-def.rs:1:15
|
LL | fn foo<'a, T, 'b>(x: &'a T) {}

View File

@ -1,6 +1,6 @@
struct X<T>(T);
impl<'a, T, 'b> X<T> {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-14303-impl.rs:3:13
|
LL | impl<'a, T, 'b> X<T> {}

View File

@ -1,5 +1,5 @@
struct X<'a, T, 'b> {
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
x: &'a &'b T
}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-14303-struct.rs:1:17
|
LL | struct X<'a, T, 'b> {

View File

@ -1,4 +1,4 @@
trait Foo<'a, T, 'b> {}
//~^ ERROR lifetime parameters must be declared prior to type parameters
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
fn main() {}

View File

@ -1,4 +1,4 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/issue-14303-trait.rs:1:18
|
LL | trait Foo<'a, T, 'b> {}

View File

@ -1,22 +1,22 @@
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/suggest-move-lifetimes.rs:1:13
|
LL | struct A<T, 'a> {
| ----^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/suggest-move-lifetimes.rs:5:13
|
LL | struct B<T, 'a, U> {
| ----^^---- help: reorder the parameters: lifetimes, then consts and types: `<'a, T, U>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/suggest-move-lifetimes.rs:10:16
|
LL | struct C<T, U, 'a> {
| -------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T, U>`
error: lifetime parameters must be declared prior to type parameters
error: lifetime parameters must be declared prior to type or const parameters
--> $DIR/suggest-move-lifetimes.rs:15:16
|
LL | struct D<T, U, 'a, 'b, V, 'c> {

View File

@ -121,7 +121,7 @@ LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=()
| ^^
|
= note: lifetime arguments must be provided before type arguments
= help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>`
= help: reorder the arguments: lifetimes, then type or consts: `<'a, 'b, 'c, T, U, V>`
error[E0747]: lifetime provided when a type was expected
--> $DIR/suggest-move-types.rs:82:56
@ -130,7 +130,7 @@ LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, '
| ^^
|
= note: lifetime arguments must be provided before type arguments
= help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>`
= help: reorder the arguments: lifetimes, then type or consts: `<'a, 'b, 'c, T, U, V>`
error: aborting due to 12 previous errors