Error code E0498
The plugin
attribute was malformed.
Erroneous code example:
#![allow(unused)] #![feature(plugin)] #![plugin(foo(args))] // error: invalid argument #![plugin(bar="test")] // error: invalid argument fn main() { }
The #[plugin]
attribute should take a single argument: the name of the plugin.
For example, for the plugin foo
:
#![feature(plugin)]
#![plugin(foo)] // ok!
See the plugin
feature section of the Unstable book for more details.