blob: e333bf6bfe53baa8aa2c89e8f5be71335515d9f3 [file] [log] [blame]
// Check that static methods are not object-safe.
trait Tr {
fn foo();
fn bar(&self) { }
}
struct St;
impl Tr for St {
fn foo() {}
}
fn main() {
let _: &Tr = &St; //~ ERROR E0038
//~^ ERROR E0038
}