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 674c2f4

Browse files
committedMar 21, 2025
update tests
1 parent 5922ed2 commit 674c2f4

File tree

101 files changed

+430
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+430
-471
lines changed
 

‎tests/ui/impl-trait/issue-99073.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ fn main() {
44

55
fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
66
move || f(fix(&f))
7-
//~^ ERROR concrete type differs from previous defining opaque type use
8-
//~| ERROR expected generic type parameter, found `&F`
7+
//~^ ERROR expected generic type parameter, found `&F`
98
}
+3-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1-
error: concrete type differs from previous defining opaque type use
2-
--> $DIR/issue-99073.rs:6:13
3-
|
4-
LL | move || f(fix(&f))
5-
| ^^^^^^^ expected `{closure@$DIR/issue-99073.rs:6:3: 6:10}`, got `G`
6-
|
7-
note: previous use here
8-
--> $DIR/issue-99073.rs:5:36
9-
|
10-
LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
11-
| ^^^^^^^^^
12-
131
error[E0792]: expected generic type parameter, found `&F`
14-
--> $DIR/issue-99073.rs:6:11
2+
--> $DIR/issue-99073.rs:6:13
153
|
164
LL | fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
175
| - this generic parameter must be used with a generic type parameter
186
LL | move || f(fix(&f))
19-
| ^^^^^^^^^^
7+
| ^^^^^^^
208

21-
error: aborting due to 2 previous errors
9+
error: aborting due to 1 previous error
2210

2311
For more information about this error, try `rustc --explain E0792`.
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.