]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_error_codes/src/error_codes/E0498.md
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / compiler / rustc_error_codes / src / error_codes / E0498.md
1 The `plugin` attribute was malformed.
2
3 Erroneous code example:
4
5 ```compile_fail,E0498
6 #![feature(plugin)]
7 #![plugin(foo(args))] // error: invalid argument
8 #![plugin(bar="test")] // error: invalid argument
9 ```
10
11 The `#[plugin]` attribute should take a single argument: the name of the plugin.
12
13 For example, for the plugin `foo`:
14
15 ```ignore (requires external plugin crate)
16 #![feature(plugin)]
17 #![plugin(foo)] // ok!
18 ```
19
20 See the [`plugin` feature] section of the Unstable book for more details.
21
22 [`plugin` feature]: https://doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html