Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
47
tests/ui/parser/fn-header-syntactic-pass.rs
Normal file
47
tests/ui/parser/fn-header-syntactic-pass.rs
Normal file
|
@ -0,0 +1,47 @@
|
|||
// Ensures that all `fn` forms can have all the function qualifiers syntactically.
|
||||
|
||||
// check-pass
|
||||
// edition:2018
|
||||
|
||||
fn main() {}
|
||||
|
||||
#[cfg(FALSE)]
|
||||
fn syntax() {
|
||||
async fn f();
|
||||
unsafe fn f();
|
||||
const fn f();
|
||||
extern "C" fn f();
|
||||
const async unsafe extern "C" fn f();
|
||||
|
||||
trait X {
|
||||
async fn f();
|
||||
unsafe fn f();
|
||||
const fn f();
|
||||
extern "C" fn f();
|
||||
const async unsafe extern "C" fn f();
|
||||
}
|
||||
|
||||
impl X for Y {
|
||||
async fn f();
|
||||
unsafe fn f();
|
||||
const fn f();
|
||||
extern "C" fn f();
|
||||
const async unsafe extern "C" fn f();
|
||||
}
|
||||
|
||||
impl Y {
|
||||
async fn f();
|
||||
unsafe fn f();
|
||||
const fn f();
|
||||
extern "C" fn f();
|
||||
const async unsafe extern "C" fn f();
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
fn f();
|
||||
fn f();
|
||||
fn f();
|
||||
fn f();
|
||||
fn f();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue