Skip to content

Commit 3e98c3a

Browse files
committed
Rename test and add comment
1 parent 8811b9c commit 3e98c3a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/ui/existential-type/issue-52843.rs renamed to src/test/ui/existential-type/issue-52843-closure-constrain.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Checks to ensure that we properly detect when a closure constrains an existential type
12
#![feature(existential_type)]
23

34
use std::fmt::Debug;

src/test/ui/existential-type/issue-52843.stderr renamed to src/test/ui/existential-type/issue-52843-closure-constrain.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: concrete type differs from previous defining existential type use
2-
--> $DIR/issue-52843.rs:7:5
2+
--> $DIR/issue-52843-closure-constrain.rs:8:5
33
|
44
LL | fn _unused() -> Existential { String::new() }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, got `std::string::String`
66
|
77
note: previous use here
8-
--> $DIR/issue-52843.rs:5:1
8+
--> $DIR/issue-52843-closure-constrain.rs:6:1
99
|
1010
LL | / fn main() {
1111
LL | | existential type Existential: Debug;

0 commit comments

Comments
 (0)