11error[E0038]: the trait `Sized` is not dyn compatible
2- --> $DIR/dyn-sized.rs:5 :47
2+ --> $DIR/dyn-sized.rs:8 :47
33 |
44LL | fn unsize_sized<T: 'static>(x: Box<T>) -> Box<dyn Sized> {
55 | ^^^^^^^^^ `Sized` is not dyn compatible
@@ -9,22 +9,22 @@ LL | fn unsize_sized<T: 'static>(x: Box<T>) -> Box<dyn Sized> {
99 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
1010
1111error[E0038]: the trait `Foo` is not dyn compatible
12- --> $DIR/dyn-sized.rs:10 :27
12+ --> $DIR/dyn-sized.rs:13 :27
1313 |
1414LL | fn unsize_subtrait(x: Box<dyn Foo>) -> Box<dyn Sized> {
1515 | ^^^^^^^ `Foo` is not dyn compatible
1616 |
1717note: for a trait to be dyn compatible it needs to allow building a vtable
1818 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
19- --> $DIR/dyn-sized.rs:1 :30
19+ --> $DIR/dyn-sized.rs:4 :30
2020 |
2121LL | trait Foo: std::fmt::Debug + Sized {}
2222 | --- ^^^^^ ...because it requires `Self: Sized`
2323 | |
2424 | this trait is not dyn compatible...
2525
2626error[E0038]: the trait `Sized` is not dyn compatible
27- --> $DIR/dyn-sized.rs:10 :44
27+ --> $DIR/dyn-sized.rs:13 :44
2828 |
2929LL | fn unsize_subtrait(x: Box<dyn Foo>) -> Box<dyn Sized> {
3030 | ^^^^^^^^^ `Sized` is not dyn compatible
@@ -34,7 +34,7 @@ LL | fn unsize_subtrait(x: Box<dyn Foo>) -> Box<dyn Sized> {
3434 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
3535
3636error[E0038]: the trait `Sized` is not dyn compatible
37- --> $DIR/dyn-sized.rs:17 :15
37+ --> $DIR/dyn-sized.rs:20 :15
3838 |
3939LL | let _bx = unsize_sized(Box::new(vec![1, 2, 3]));
4040 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Sized` is not dyn compatible
@@ -44,37 +44,37 @@ LL | let _bx = unsize_sized(Box::new(vec![1, 2, 3]));
4444 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
4545
4646error[E0038]: the trait `Foo` is not dyn compatible
47- --> $DIR/dyn-sized.rs:20 :21
47+ --> $DIR/dyn-sized.rs:23 :21
4848 |
4949LL | let bx: Box<dyn Foo> = Box::new(vec![1, 2, 3]);
5050 | ^^^ `Foo` is not dyn compatible
5151 |
5252note: for a trait to be dyn compatible it needs to allow building a vtable
5353 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
54- --> $DIR/dyn-sized.rs:1 :30
54+ --> $DIR/dyn-sized.rs:4 :30
5555 |
5656LL | trait Foo: std::fmt::Debug + Sized {}
5757 | --- ^^^^^ ...because it requires `Self: Sized`
5858 | |
5959 | this trait is not dyn compatible...
6060
6161error[E0038]: the trait `Foo` is not dyn compatible
62- --> $DIR/dyn-sized.rs:23 :31
62+ --> $DIR/dyn-sized.rs:26 :31
6363 |
6464LL | let _bx = unsize_subtrait(bx);
6565 | ^^ `Foo` is not dyn compatible
6666 |
6767note: for a trait to be dyn compatible it needs to allow building a vtable
6868 for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
69- --> $DIR/dyn-sized.rs:1 :30
69+ --> $DIR/dyn-sized.rs:4 :30
7070 |
7171LL | trait Foo: std::fmt::Debug + Sized {}
7272 | --- ^^^^^ ...because it requires `Self: Sized`
7373 | |
7474 | this trait is not dyn compatible...
7575
7676error[E0038]: the trait `Sized` is not dyn compatible
77- --> $DIR/dyn-sized.rs:23 :15
77+ --> $DIR/dyn-sized.rs:26 :15
7878 |
7979LL | let _bx = unsize_subtrait(bx);
8080 | ^^^^^^^^^^^^^^^^^^^ `Sized` is not dyn compatible
0 commit comments