fix tests for 2018

This commit is contained in:
Niko Matsakis 2019-09-19 13:15:54 -04:00
parent b2c51c24c9
commit 2655663345
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,9 @@
// `"".to_string()` value was causing a (spurious) unwind path that
// led us to believe that the future might be dropped after `config`
// had been dropped. This cannot, in fact, happen.
//
// check-pass
// edition:2018
async fn connect() {
let config = 666;

View File

@ -4,6 +4,7 @@
// same PR.
//
// check-pass
// edition:2018
#[derive(Debug)]
struct A<'a> {