mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-05 19:43:24 +00:00
Add main functions and check-pass annotations
This commit is contained in:
parent
258498af58
commit
c1f22c018e
@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// check-pass
|
||||
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
|
@ -1,3 +1,5 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
@ -30,3 +32,5 @@ impl Struct {
|
||||
f
|
||||
}
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -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`.
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,3 +1,5 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
@ -30,3 +32,5 @@ impl Struct {
|
||||
f
|
||||
}
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
@ -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`.
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// run-pass
|
||||
// check-pass
|
||||
|
||||
#![feature(arbitrary_self_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// check-pass
|
||||
|
||||
struct Foo<'a>(&'a ());
|
||||
impl<'a> Foo<'a> {
|
||||
|
Loading…
Reference in New Issue
Block a user