]>
Commit | Line | Data |
---|---|---|
c34b1796 AL |
1 | // Test that `#[plugin_registrar]` attribute is gated by `plugin_registrar` |
2 | // feature gate. | |
3 | ||
1a4d82fc JJ |
4 | // the registration function isn't typechecked yet |
5 | #[plugin_registrar] | |
e74abb32 XL |
6 | //~^ ERROR compiler plugins are deprecated |
7 | //~| WARN use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated | |
c34b1796 | 8 | pub fn registrar() {} |
e74abb32 XL |
9 | //~^ ERROR compiler plugins are experimental and possibly buggy |
10 | ||
970d7e83 | 11 | fn main() {} |