@@ -5,7 +5,7 @@ LL | let u: &Foo = t;
5
5
| ^ doesn't have a size known at compile-time
6
6
|
7
7
= help: the trait `std::marker::Sized` is not implemented for `T`
8
- = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
8
+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
9
9
= help: consider adding a `where T: std::marker::Sized` bound
10
10
= note: required for the cast to the object type `dyn Foo`
11
11
@@ -16,7 +16,7 @@ LL | let v: &Foo = t as &Foo;
16
16
| ^ doesn't have a size known at compile-time
17
17
|
18
18
= help: the trait `std::marker::Sized` is not implemented for `T`
19
- = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
19
+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
20
20
= help: consider adding a `where T: std::marker::Sized` bound
21
21
= note: required for the cast to the object type `dyn Foo`
22
22
@@ -27,7 +27,7 @@ LL | let _: &[&Foo] = &["hi"];
27
27
| ^^^^ doesn't have a size known at compile-time
28
28
|
29
29
= help: the trait `std::marker::Sized` is not implemented for `str`
30
- = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
30
+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
31
31
= note: required for the cast to the object type `dyn Foo`
32
32
33
33
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
@@ -37,7 +37,7 @@ LL | let _: &Foo = x as &Foo;
37
37
| ^ doesn't have a size known at compile-time
38
38
|
39
39
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
40
- = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
40
+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
41
41
= note: required for the cast to the object type `dyn Foo`
42
42
43
43
error: aborting due to 4 previous errors
0 commit comments