@@ -5,7 +5,7 @@ LL | const CONST_0: Debug+Sync = *(&0 as &(Debug+Sync));
55 | ^^^^^^^^^^ doesn't have a size known at compile-time
66 |
77 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
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>
99
1010error[E0277]: the size for values of type `str` cannot be known at compilation time
1111 --> $DIR/const-unsized.rs:6:18
@@ -14,7 +14,7 @@ LL | const CONST_FOO: str = *"foo";
1414 | ^^^ doesn't have a size known at compile-time
1515 |
1616 = help: the trait `std::marker::Sized` is not implemented for `str`
17- = 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>
17+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1818
1919error[E0277]: the size for values of type `(dyn std::fmt::Debug + std::marker::Sync + 'static)` cannot be known at compilation time
2020 --> $DIR/const-unsized.rs:9:18
@@ -23,7 +23,7 @@ LL | static STATIC_1: Debug+Sync = *(&1 as &(Debug+Sync));
2323 | ^^^^^^^^^^ doesn't have a size known at compile-time
2424 |
2525 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
26- = 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>
26+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2727
2828error[E0277]: the size for values of type `str` cannot be known at compilation time
2929 --> $DIR/const-unsized.rs:12:20
@@ -32,7 +32,7 @@ LL | static STATIC_BAR: str = *"bar";
3232 | ^^^ doesn't have a size known at compile-time
3333 |
3434 = help: the trait `std::marker::Sized` is not implemented for `str`
35- = 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>
35+ = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3636
3737error: aborting due to 4 previous errors
3838
0 commit comments