Skip to content

Commit

Permalink
Update ui test suite to nightly-2024-01-11
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 11, 2024
1 parent 9a8b050 commit 7b1fec7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/ui/lifetime-span.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,30 @@ note: trait defined here, with 0 lifetime parameters
|
22 | pub trait Trait2 {
| ^^^^^^

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
--> tests/ui/lifetime-span.rs:13:14
|
8 | async fn method(&'r self);
| ---------------- lifetimes in impl do not match this method in trait
...
13 | async fn method(&self) {}
| ^^^^^^^^^^^^^ lifetimes do not match method in trait

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
--> tests/ui/lifetime-span.rs:18:14
|
8 | async fn method(&'r self);
| ---------------- lifetimes in impl do not match this method in trait
...
18 | async fn method(&self) {}
| ^^^^^^^^^^^^^ lifetimes do not match method in trait

error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
--> tests/ui/lifetime-span.rs:33:14
|
23 | async fn method<'r>(&'r self);
| ---- lifetimes in impl do not match this method in trait
...
33 | async fn method(&'r self) {}
| ^^^^^^^^^^^^^^^^ lifetimes do not match method in trait

0 comments on commit 7b1fec7

Please sign in to comment.