blob: 73bb6725f5a72e4b7d21ec3deedafa9a4ca05074 [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` cannot be made into an object
trait Other {}
fn main() {}