fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
739 B19 linesraw
1error[E0038]: the trait `Qiz` cannot be made into an object
2  --> $DIR/issue-19380.rs:11:3
3   |
4LL | trait Qiz {
5   |       --- this trait cannot be made into an object...
6LL |   fn qiz();
7   |      --- ...because associated function `qiz` has no `self` parameter
8...
9LL |   foos: &'static [&'static (dyn Qiz + 'static)]
10   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Qiz` cannot be made into an object
11   |
12help: consider turning `qiz` into a method by giving it a `&self` argument or constraining it so it does not apply to trait objects
13   |
14LL |   fn qiz() where Self: Sized;
15   |            ^^^^^^^^^^^^^^^^^
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0038`.