2020-01-31 21:04:58 -06:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(unused_variables, dead_code)]
|
|
|
|
|
|
|
|
trait Trait {
|
2020-10-15 19:23:45 -05:00
|
|
|
fn foo(&self) where Self: Other, Self: Sized, { }
|
2020-01-31 21:04:58 -06:00
|
|
|
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() {}
|