blob: 39184e5c544049037f4b877b68c70c279e73e71b [file] [log] [blame]
#[macro_use]
extern crate diesel;
use diesel::*;
use diesel::dsl::*;
fn main() {
let connection = PgConnection::establish("").unwrap();
select(array((1, 3))).get_result::<Vec<i32>>(&connection);
select(array((1f64, 3f64))).get_result::<Vec<i32>>(&connection);
//~^ ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
//~| ERROR E0277
select(array((1f64, 3f64))).get_result::<Vec<f64>>(&connection);
}