]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/gated-plugin_registrar.rs
Auto merge of #23934 - lfairy:write-no-deref, r=alexcrichton
[rust.git] / src / test / compile-fail / gated-plugin_registrar.rs
index f6e11ffd9e5239c92f732a01c6cbd0969afd6726..9cdebde7b7b9879946e83a4aaf2c274540cf6cda 100644 (file)
@@ -8,8 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// Test that `#[plugin_registrar]` attribute is gated by `plugin_registrar`
+// feature gate.
+
 // the registration function isn't typechecked yet
 #[plugin_registrar]
-pub fn registrar() {} //~ ERROR compiler plugins are experimental
-
+pub fn registrar() {}
+//~^ ERROR compiler plugins are experimental
 fn main() {}