]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-plugin_registrar.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / feature-gates / feature-gate-plugin_registrar.rs
1 // Test that `#[plugin_registrar]` attribute is gated by `plugin_registrar`
2 // feature gate.
3
4 // the registration function isn't typechecked yet
5 #[plugin_registrar]
6 //~^ ERROR compiler plugins are deprecated
7 //~| WARN use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated
8 pub fn registrar() {}
9 //~^ ERROR compiler plugins are experimental and possibly buggy
10
11 fn main() {}