2020-01-31 21:04:58 -06:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(unused_variables, dead_code)]
|
|
|
|
|
|
|
|
trait Trait {
|
2022-06-25 16:59: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() {}
|