2018-08-17 16:52:34 -05:00
|
|
|
#![feature(custom_attribute)]
|
2018-07-22 18:52:51 -05:00
|
|
|
|
|
|
|
type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt`
|
2018-08-02 18:05:00 -05:00
|
|
|
type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip`
|
2018-07-22 18:52:51 -05:00
|
|
|
|
|
|
|
#[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
|
|
|
|
struct S;
|
|
|
|
|
2018-08-03 16:25:45 -05:00
|
|
|
#[rustfmt] // OK, interpreted as a custom attribute
|
2018-07-22 18:52:51 -05:00
|
|
|
fn check() {}
|
|
|
|
|
|
|
|
#[rustfmt::skip] // OK
|
|
|
|
fn main() {
|
|
|
|
rustfmt; //~ ERROR expected value, found tool module `rustfmt`
|
|
|
|
rustfmt!(); //~ ERROR cannot find macro `rustfmt!` in this scope
|
|
|
|
|
2018-08-02 18:05:00 -05:00
|
|
|
rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip`
|
2018-07-22 18:52:51 -05:00
|
|
|
}
|