blob: 2b26d8cc82ee3c53215e89cf9b3c9f62da93fc1a [file] [log] [blame]
//@ run-rustfix
#![allow(unused_variables, dead_code)]
trait Trait {
fn foo(&self) where Self: Other, Self: Sized { }
fn bar(self: &Self) {} //~ ERROR invalid `self` parameter type
}
fn bar(x: &dyn Trait) {} //~ ERROR the trait `Trait` is not dyn compatible
trait Other {}
fn main() {}