#![no_main] extern crate arraygen; use arraygen::Arraygen; #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: _, Option<_>)] //~ERROR 8:63: 8:72: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Option < _ >' type struct Implicit1 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: Option<_>, _)] //~ERROR 14:71: 14:72: gen_array method 'my_array' contains implicit_select_all clause with duplicated '_' type struct Implicit2 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: _, Option)] //~ERROR 20:63: 20:74: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Option < f32 >' type struct Implicit3 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: Option, _)] //~ERROR 26:74: 26:75: gen_array method 'my_array' contains implicit_select_all clause with duplicated '_' type struct Implicit4 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: Option<_>, Option)] //~ERROR 32:71: 32:82: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Option < f32 >' type struct Implicit5 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Option, implicit_select_all: Option, Option<_>)] //~ERROR 38:74: 38:83: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Option < _ >' type struct Implicit6 { pub value: Option, } #[derive(Arraygen)] #[gen_array(fn my_array: Result, implicit_select_all: Result<_, f32>, Result)] //~ERROR 44:82: 44:96: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Result < f32, _ >' type struct Implicit7 { pub value: Result, } #[derive(Arraygen)] #[gen_array(fn my_array: Option>, implicit_select_all: Option>, Option>)] //~ERROR 50:98: 50:120: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Option < Result < f32, _ > >' type struct Implicit8 { pub value: Option>, } #[derive(Arraygen)] #[gen_array(fn my_array: Result, Option>, implicit_select_all: Result, Option>, Result, Option<_>>)] //~ERROR 56:114: 56:144: gen_array method 'my_array' contains implicit_select_all clause with duplicated 'Result < Option < f32 >, Option < _ > >' type struct Implicit9 { pub value: Result, Option>, } #[derive(Arraygen)] #[gen_array(fn my_array: i32, implicit_select_all: i32, f32, _, u16, u8, s8)] //~ERROR 62:62: 62:63: gen_array method 'my_array' contains implicit_select_all clause with duplicated '_' type struct Implicit10 { pub value: Option, }