summary refs log tree commit diff
path: root/src/test/ui/multiple-plugin-registrars.rs
blob: d211204b134be6a3d3a349bf3064cc99e399ac19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}