fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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() {}