test: Add a test for distinguishing attributes from extensions
Issue #487
This commit is contained in:
parent
c109c9dd73
commit
34040be580
@ -161,6 +161,18 @@ mod test_attr_inner_then_outer_multi {
|
||||
}
|
||||
}
|
||||
|
||||
mod test_distinguish_syntax_ext {
|
||||
|
||||
use std;
|
||||
|
||||
fn f() {
|
||||
#fmt("test%s", "s");
|
||||
#[attr = "val"]
|
||||
fn g() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user