Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 90b8f3a

Browse files
committedAug 18, 2024·
Rename ui tests.
1 parent dd67d09 commit 90b8f3a

6 files changed

+11
-11
lines changed
 

‎tests/ui/type-alias-impl-trait/issue-129099-impl-sized-is-not-dyn.stderr ‎tests/ui/type-alias-impl-trait/bound-lifetime-through-dyn-trait.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
2-
--> $DIR/issue-129099-impl-sized-is-not-dyn.rs:6:71
2+
--> $DIR/bound-lifetime-through-dyn-trait.rs:6:71
33
|
44
LL | fn dyn_hoops<T: Sized>() -> dyn for<'a> Iterator<Item = impl Captures<'a>> {
55
| ^^
66
|
77
note: lifetime declared here
8-
--> $DIR/issue-129099-impl-sized-is-not-dyn.rs:6:37
8+
--> $DIR/bound-lifetime-through-dyn-trait.rs:6:37
99
|
1010
LL | fn dyn_hoops<T: Sized>() -> dyn for<'a> Iterator<Item = impl Captures<'a>> {
1111
| ^^
1212

1313
error: item does not constrain `Opaque::{opaque#0}`, but has it in its signature
14-
--> $DIR/issue-129099-impl-sized-is-not-dyn.rs:11:8
14+
--> $DIR/bound-lifetime-through-dyn-trait.rs:11:8
1515
|
1616
LL | pub fn main() {
1717
| ^^^^
1818
|
1919
= note: consider moving the opaque type's declaration and defining uses into a separate module
2020
note: this opaque type is in the signature
21-
--> $DIR/issue-129099-impl-sized-is-not-dyn.rs:13:19
21+
--> $DIR/bound-lifetime-through-dyn-trait.rs:13:19
2222
|
2323
LL | type Opaque = impl Sized;
2424
| ^^^^^^^^^^

‎tests/ui/type-alias-impl-trait/issue-121422-non-lifetime-binder-constraint.stderr ‎tests/ui/type-alias-impl-trait/non-lifetime-binder-in-constraint.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
error[E0220]: associated type `Assoc` not found for `Trait`
2-
--> $DIR/issue-121422-non-lifetime-binder-constraint.rs:6:39
2+
--> $DIR/non-lifetime-binder-in-constraint.rs:6:39
33
|
44
LL | fn produce() -> impl for<T> Trait<(), Assoc = impl Trait<T>> {
55
| ^^^^^ associated type `Assoc` not found
66

77
error[E0220]: associated type `Assoc` not found for `Trait`
8-
--> $DIR/issue-121422-non-lifetime-binder-constraint.rs:6:39
8+
--> $DIR/non-lifetime-binder-in-constraint.rs:6:39
99
|
1010
LL | fn produce() -> impl for<T> Trait<(), Assoc = impl Trait<T>> {
1111
| ^^^^^ associated type `Assoc` not found
1212
|
1313
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
1414

1515
error[E0277]: the trait bound `{integer}: Trait<()>` is not satisfied
16-
--> $DIR/issue-121422-non-lifetime-binder-constraint.rs:6:17
16+
--> $DIR/non-lifetime-binder-in-constraint.rs:6:17
1717
|
1818
LL | fn produce() -> impl for<T> Trait<(), Assoc = impl Trait<T>> {
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait<()>` is not implemented for `{integer}`
2020
|
2121
help: this trait has no implementations, consider adding one
22-
--> $DIR/issue-121422-non-lifetime-binder-constraint.rs:4:1
22+
--> $DIR/non-lifetime-binder-in-constraint.rs:4:1
2323
|
2424
LL | trait Trait<T: ?Sized> {}
2525
| ^^^^^^^^^^^^^^^^^^^^^^

‎tests/ui/type-alias-impl-trait/issue-119716-non-lifetime-binder.stderr ‎tests/ui/type-alias-impl-trait/non-lifetime-binder.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0666]: nested `impl Trait` is not allowed
2-
--> $DIR/issue-119716-non-lifetime-binder.rs:6:29
2+
--> $DIR/non-lifetime-binder.rs:6:29
33
|
44
LL | fn f() -> impl for<T> Trait<impl Trait<T>> {}
55
| ------------------^^^^^^^^^^^^^-
@@ -8,13 +8,13 @@ LL | fn f() -> impl for<T> Trait<impl Trait<T>> {}
88
| outer `impl Trait`
99

1010
error[E0277]: the trait bound `(): Trait<impl Trait<T>>` is not satisfied
11-
--> $DIR/issue-119716-non-lifetime-binder.rs:6:11
11+
--> $DIR/non-lifetime-binder.rs:6:11
1212
|
1313
LL | fn f() -> impl for<T> Trait<impl Trait<T>> {}
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait<impl Trait<T>>` is not implemented for `()`
1515
|
1616
help: this trait has no implementations, consider adding one
17-
--> $DIR/issue-119716-non-lifetime-binder.rs:4:1
17+
--> $DIR/non-lifetime-binder.rs:4:1
1818
|
1919
LL | trait Trait<T> {}
2020
| ^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)
Please sign in to comment.