Document #[test_case] and #![test_runner]

This commit is contained in:
John Renner 2018-08-30 13:40:33 -07:00
parent 08ea5b7c78
commit e5ed105716
5 changed files with 37 additions and 4 deletions

View file

@ -10,5 +10,5 @@
fn main() {
concat!(test!());
//~^ error: `test` can only be used in attributes
//~^ error: cannot find macro `test!` in this scope
}

View file

@ -1,4 +1,4 @@
error: `test` can only be used in attributes
error: cannot find macro `test!` in this scope
--> $DIR/issue-11692-2.rs:12:13
|
LL | concat!(test!());

View file

@ -11,4 +11,4 @@
#[macro_export]
macro_rules! test {
() => {};
}
}

View file

@ -15,4 +15,4 @@
#[macro_use] extern crate test_macro;
#[test]
fn foo(){}
fn foo(){}