#[macro_use]
extern crate diesel;

use diesel::*;

table! {
    int_primary_key {
        id -> Serial,
    }
}

table! {
    string_primary_key {
        id -> VarChar,
    }
}

fn main() {
    let connection = Connection::establish("").unwrap();
    let one = connection.find(int_primary_key::table, "1".to_string()).unwrap();
    //~^ ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
    let string = connection.find(string_primary_key::table, 1).unwrap();
    //~^ ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
    //~| ERROR E0277
}

#[macro_use]
extern crate diesel;

use diesel::*;

table! {
    int_primary_key {
        id -> Serial,
    }
}

table! {
    string_primary_key {
        id -> VarChar,
    }
}

fn main() {
    let connection = Connection::establish("").unwrap();
    let one = connection.find(int_primary_key::table, "1".to_string()).unwrap();
    //~^ ERROR E0277
    //~| ERROR E0277
    let string = connection.find(string_primary_key::table, 1).unwrap();
    //~^ ERROR E0277
    //~| ERROR E0277
}

--- 
+++ 
@@ -20,7 +20,13 @@
     let one = connection.find(int_primary_key::table, "1".to_string()).unwrap();
     //~^ ERROR E0277
     //~| ERROR E0277
+    //~| ERROR E0277
+    //~| ERROR E0277
+    //~| ERROR E0277
     let string = connection.find(string_primary_key::table, 1).unwrap();
     //~^ ERROR E0277
     //~| ERROR E0277
+    //~| ERROR E0277
+    //~| ERROR E0277
+    //~| ERROR E0277
 }
Add extra compile fail error
