Document #[test_case] and #![test_runner]
This commit is contained in:
parent
08ea5b7c78
commit
e5ed105716
5 changed files with 37 additions and 4 deletions
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
fn main() {
|
||||
concat!(test!());
|
||||
//~^ error: `test` can only be used in attributes
|
||||
//~^ error: cannot find macro `test!` in this scope
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!());
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@
|
|||
#[macro_export]
|
||||
macro_rules! test {
|
||||
() => {};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@
|
|||
#[macro_use] extern crate test_macro;
|
||||
|
||||
#[test]
|
||||
fn foo(){}
|
||||
fn foo(){}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue