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
504 B14 linesraw
1error[E0038]: the trait `Bar` cannot be made into an object
2  --> $DIR/object-safety-sized.rs:12:30
3   |
4LL | trait Bar : Sized {
5   |       ---   ----- ...because it requires `Self: Sized`
6   |       |
7   |       this trait cannot be made into an object...
8...
9LL | fn make_bar<T:Bar>(t: &T) -> &dyn Bar {
10   |                              ^^^^^^^^ the trait `Bar` cannot be made into an object
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0038`.