2018-07-22 23:52:51 +00:00
|
|
|
type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt`
|
2018-08-02 23:05:00 +00:00
|
|
|
type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip`
|
2018-07-22 23:52:51 +00:00
|
|
|
|
|
|
|
#[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR cannot find derive macro `rustfmt` in this scope
|
2018-07-22 23:52:51 +00:00
|
|
|
struct S;
|
|
|
|
|
2019-09-08 01:34:24 +00:00
|
|
|
// Interpreted as an unstable custom attribute
|
2019-09-15 09:55:18 +00:00
|
|
|
#[rustfmt] //~ ERROR cannot find attribute `rustfmt` in this scope
|
2018-07-22 23:52:51 +00:00
|
|
|
fn check() {}
|
|
|
|
|
|
|
|
#[rustfmt::skip] // OK
|
|
|
|
fn main() {
|
|
|
|
rustfmt; //~ ERROR expected value, found tool module `rustfmt`
|
2019-09-15 10:12:14 +00:00
|
|
|
rustfmt!(); //~ ERROR cannot find macro `rustfmt` in this scope
|
2018-07-22 23:52:51 +00:00
|
|
|
|
2018-08-02 23:05:00 +00:00
|
|
|
rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip`
|
2018-07-22 23:52:51 +00:00
|
|
|
}
|