blob: ec039557b63583063c2167ae40c24f34141be523 [file] [log] [blame]
// 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
}