blob: f4abcf8542e5fa906d2f64efa5cd3a870f2f00c7 [file] [log] [blame] [edit]
// Check that static methods render the trait dyn-incompatible.
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
}