blob: f43d332d6963707ec570af8cc57f804b663dbf0f [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 _: &dyn Tr = &St; //~ ERROR E0038
//~^ ERROR E0038
}