fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1// run-rustfix 2#![allow(unused_variables, dead_code)] 3 4trait Trait { 5 fn foo() where Self: Other, Self: Sized, { } 6 fn bar(self: &Self) {} //~ ERROR invalid `self` parameter type 7} 8 9fn bar(x: &dyn Trait) {} //~ ERROR the trait `Trait` cannot be made into an object 10 11trait Other {} 12 13fn main() {}