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

View File

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