Skip to content

Commit 59c217f

Browse files
committedMar 28, 2024
remove test FIXME re once-module-region
1 parent fb35156 commit 59c217f

5 files changed

+6
-8
lines changed
 

‎tests/ui/impl-trait/defining-use-captured-non-universal-region.infer.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0792]: expected generic lifetime parameter, found `'_`
2-
--> $DIR/defining-use-captured-non-universal-region.rs:14:18
2+
--> $DIR/defining-use-captured-non-universal-region.rs:13:18
33
|
44
LL | fn foo<'a>() -> impl Sized + 'a {
55
| -- this generic parameter must be used with a generic lifetime parameter

‎tests/ui/impl-trait/defining-use-captured-non-universal-region.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This was an ICE. See #110726.
2-
// FIXME(aliemjay): outdated due to "once modulo regions" restriction.
32

43
//@ revisions: statik infer fixed
54
//@ [fixed] check-pass

‎tests/ui/impl-trait/defining-use-captured-non-universal-region.statik.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0792]: expected generic lifetime parameter, found `'static`
2-
--> $DIR/defining-use-captured-non-universal-region.rs:10:18
2+
--> $DIR/defining-use-captured-non-universal-region.rs:9:18
33
|
44
LL | fn foo<'a>() -> impl Sized + 'a {
55
| -- cannot use static lifetime; use a bound lifetime instead or remove the lifetime parameter from the opaque type

‎tests/ui/impl-trait/rpit/non-defining-use-lifetimes.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// issue: #111935
2-
// FIXME(aliemjay): outdated due to "once modulo regions" restriction.
32

43
#![allow(unconditional_recursion)]
54

‎tests/ui/impl-trait/rpit/non-defining-use-lifetimes.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
error[E0792]: expected generic lifetime parameter, found `'static`
2-
--> $DIR/non-defining-use-lifetimes.rs:14:16
2+
--> $DIR/non-defining-use-lifetimes.rs:13:16
33
|
44
LL | fn foo<'a>(_: Lt<'a>) -> impl Sized + 'a {
55
| -- cannot use static lifetime; use a bound lifetime instead or remove the lifetime parameter from the opaque type
66
LL | let _: () = foo(Lt::<'static>::None);
77
| ^^
88

99
error[E0792]: expected generic lifetime parameter, found `'_`
10-
--> $DIR/non-defining-use-lifetimes.rs:23:16
10+
--> $DIR/non-defining-use-lifetimes.rs:22:16
1111
|
1212
LL | fn foo<'a>(_: Lt<'a>) -> impl Sized + 'a {
1313
| -- this generic parameter must be used with a generic lifetime parameter
1414
LL | let _: () = foo(Lt::<'_>::None);
1515
| ^^
1616

1717
error: non-defining opaque type use in defining scope
18-
--> $DIR/non-defining-use-lifetimes.rs:33:16
18+
--> $DIR/non-defining-use-lifetimes.rs:32:16
1919
|
2020
LL | let _: () = foo(Lt::<'a>::None, Lt::<'a>::None);
2121
| ^^
2222
|
2323
note: lifetime used multiple times
24-
--> $DIR/non-defining-use-lifetimes.rs:32:58
24+
--> $DIR/non-defining-use-lifetimes.rs:31:58
2525
|
2626
LL | fn foo<'a, 'b>(_: Lt<'a>, _: Lt<'b>) -> impl Sized + 'a + 'b {
2727
| ^^ ^^

0 commit comments

Comments
 (0)