]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
94222f64
XL
1The `plugin` attribute was malformed.
2
3Erroneous 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
11The `#[plugin]` attribute should take a single argument: the name of the plugin.
12
13For example, for the plugin `foo`:
14
15```ignore (requires external plugin crate)
16#![feature(plugin)]
17#![plugin(foo)] // ok!
18```
19
20See 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