@@ -1642,7 +1642,7 @@ fn f<T>() {}
1642
1642
1643
1643
It is not possible to declare type parameters on a function that has the `start`
1644
1644
attribute. Such a function must have the following type signature (for more
1645
- information: http://doc.rust-lang.org/stable/book/no-stdlib.html):
1645
+ information: http://doc.rust-lang.org/stable/book/first-edition/ no-stdlib.html):
1646
1646
1647
1647
```ignore
1648
1648
fn(isize, *const *const u8) -> isize;
@@ -3186,7 +3186,7 @@ impl Baz for Bar { } // Note: This is OK
3186
3186
E0374 : r##"
3187
3187
A struct without a field containing an unsized type cannot implement
3188
3188
`CoerceUnsized`. An
3189
- [unsized type](https://doc.rust-lang.org/book/unsized-types.html)
3189
+ [unsized type](https://doc.rust-lang.org/book/first-edition/ unsized-types.html)
3190
3190
is any type that the compiler doesn't know the length or alignment of at
3191
3191
compile time. Any struct containing an unsized type is also unsized.
3192
3192
@@ -3245,9 +3245,9 @@ A struct with more than one field containing an unsized type cannot implement
3245
3245
`CoerceUnsized`. This only occurs when you are trying to coerce one of the
3246
3246
types in your struct to another type in the struct. In this case we try to
3247
3247
impl `CoerceUnsized` from `T` to `U` which are both types that the struct
3248
- takes. An [unsized type](https://doc.rust-lang.org/book/unsized-types.html)
3249
- is any type that the compiler doesn't know the length or alignment of at
3250
- compile time. Any struct containing an unsized type is also unsized.
3248
+ takes. An [unsized type] is any type that the compiler doesn't know the length
3249
+ or alignment of at compile time. Any struct containing an unsized type is also
3250
+ unsized.
3251
3251
3252
3252
Example of erroneous code:
3253
3253
@@ -3292,6 +3292,7 @@ fn coerce_foo<T: CoerceUnsized<U>, U>(t: T) -> Foo<U> {
3292
3292
}
3293
3293
```
3294
3294
3295
+ [unsized type]: https://doc.rust-lang.org/book/first-edition/unsized-types.html
3295
3296
"## ,
3296
3297
3297
3298
E0376 : r##"
@@ -3300,7 +3301,7 @@ The type you are trying to impl `CoerceUnsized` for is not a struct.
3300
3301
already able to be coerced without an implementation of `CoerceUnsized`
3301
3302
whereas a struct containing an unsized type needs to know the unsized type
3302
3303
field it's containing is able to be coerced. An
3303
- [unsized type](https://doc.rust-lang.org/book/unsized-types.html)
3304
+ [unsized type](https://doc.rust-lang.org/book/first-edition/ unsized-types.html)
3304
3305
is any type that the compiler doesn't know the length or alignment of at
3305
3306
compile time. Any struct containing an unsized type is also unsized.
3306
3307
0 commit comments