fork/rust

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

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

1.43.0
689 B17 linesraw
1error[E0038]: the trait `Bar` cannot be made into an object
2  --> $DIR/issue-28576.rs:7:12
3   |
4LL |   pub trait Bar: Foo<Assoc=()> {
5   |             ---  -------------
6   |             |    |   |
7   |             |    |   ...because it uses `Self` as a type parameter in this
8   |             |    ...because it uses `Self` as a type parameter in this
9   |             this trait cannot be made into an object...
10LL |       fn new(&self, b: &
11LL | /            dyn Bar
12LL | |               <Assoc=()>
13   | |________________________^ the trait `Bar` cannot be made into an object
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0038`.