Skip to content

Commit

Permalink
Rename test and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Jul 28, 2019
1 parent 8811b9c commit 3e98c3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -1,3 +1,4 @@
// Checks to ensure that we properly detect when a closure constrains an existential type
#![feature(existential_type)]

use std::fmt::Debug;
Expand Down
@@ -1,11 +1,11 @@
error: concrete type differs from previous defining existential type use
--> $DIR/issue-52843.rs:7:5
--> $DIR/issue-52843-closure-constrain.rs:8:5
|
LL | fn _unused() -> Existential { String::new() }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, got `std::string::String`
|
note: previous use here
--> $DIR/issue-52843.rs:5:1
--> $DIR/issue-52843-closure-constrain.rs:6:1
|
LL | / fn main() {
LL | | existential type Existential: Debug;
Expand Down

0 comments on commit 3e98c3a

Please sign in to comment.