Rename test and add comment

This commit is contained in:
Aaron Hill 2019-07-28 19:12:04 -04:00
parent 8811b9ce9f
commit 3e98c3acf5
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;