fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
301 B13 linesraw
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() {}