Add main functions and check-pass annotations

This commit is contained in:
Taiki Endo 2019-07-15 18:25:09 +09:00
parent 258498af58
commit c1f22c018e
12 changed files with 16 additions and 22 deletions

View File

@ -1,4 +1,4 @@
// compile-pass
// check-pass
use std::pin::Pin;
use std::task::{Context, Poll};

View File

@ -1,3 +1,5 @@
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]
@ -30,3 +32,5 @@ impl Struct {
f
}
}
fn main() { }

View File

@ -1,7 +0,0 @@
error[E0601]: `main` function not found in crate `alias`
|
= note: consider adding a `main` function to `$DIR/alias.rs`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0601`.

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,3 +1,5 @@
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]
@ -30,3 +32,5 @@ impl Struct {
f
}
}
fn main() { }

View File

@ -1,7 +0,0 @@
error[E0601]: `main` function not found in crate `ref_mut_alias`
|
= note: consider adding a `main` function to `$DIR/ref-mut-alias.rs`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0601`.

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![feature(arbitrary_self_types)]
#![allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
// compile-pass
// check-pass
struct Foo<'a>(&'a ());
impl<'a> Foo<'a> {