rust/src/test/ui/multiple-plugin-registrars.rs
2018-12-25 21:08:33 -07:00

13 lines
233 B
Rust

// error-pattern: multiple plugin registration functions found
#![feature(plugin_registrar)]
// the registration function isn't typechecked yet
#[plugin_registrar]
pub fn one() {}
#[plugin_registrar]
pub fn two() {}
fn main() {}