Skip to content

Commit a621b84

Browse files
committed
Bless tests.
1 parent f901df3 commit a621b84

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/test/ui/generic-associated-types/issue-70304.rs

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ where
4646

4747
fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
4848
//~^ ERROR: missing lifetime specifier
49+
//~| ERROR: missing lifetime specifier
4950
DocumentImpl {}
5051
}
5152

src/test/ui/generic-associated-types/issue-70304.stderr

+13-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ help: consider using the `'static` lifetime
1010
LL | fn create_doc() -> impl Document<Cursor<'static> = DocCursorImpl<'_>> {
1111
| ~~~~~~~
1212

13-
error: aborting due to previous error
13+
error[E0106]: missing lifetime specifier
14+
--> $DIR/issue-70304.rs:47:61
15+
|
16+
LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
17+
| ^^ expected named lifetime parameter
18+
|
19+
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
20+
help: consider using the `'static` lifetime
21+
|
22+
LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'static>> {
23+
| ~~~~~~~
24+
25+
error: aborting due to 2 previous errors
1426

1527
For more information about this error, try `rustc --explain E0106`.

src/test/ui/impl-trait/issues/issue-86800.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>
2727

2828
fn execute_transaction_fut<'f, F, O>(
2929
f: F,
30-
) -> impl FnOnce(&mut dyn Transaction) -> TransactionFuture<O>
30+
) -> impl FnOnce(&mut dyn Transaction) -> TransactionFuture<'_, O>
3131
where
32-
F: FnOnce(&mut dyn Transaction) -> TransactionFuture<O> + 'f
32+
F: FnOnce(&mut dyn Transaction) -> TransactionFuture<'_, O> + 'f
3333
{
3434
f
3535
}
3636

3737
impl Context {
3838
async fn do_transaction<O>(
39-
&self, f: impl FnOnce(&mut dyn Transaction) -> TransactionFuture<O>
39+
&self, f: impl FnOnce(&mut dyn Transaction) -> TransactionFuture<'_, O>
4040
) -> TransactionResult<O>
4141
{
4242
let mut conn = Connection {};

0 commit comments

Comments
 (0)