@@ -239,10 +239,10 @@ trait_obj.method_one();
239
239
trait_obj.method_two();
240
240
```
241
241
242
- You can read more about trait objects in the Trait Object section of the
243
- Reference:
242
+ You can read more about trait objects in the [ Trait Objects] section of the
243
+ Reference.
244
244
245
- https://doc.rust-lang.org/reference.html#trait-objects
245
+ [Trait Objects]: https://doc.rust-lang.org/reference/types .html#trait-objects
246
246
"## ,
247
247
248
248
E0034 : r##"
@@ -874,8 +874,9 @@ lvalue expression represents a memory location and can be a variable (with
874
874
optional namespacing), a dereference, an indexing expression or a field
875
875
reference.
876
876
877
- More details can be found here:
878
- https://doc.rust-lang.org/reference.html#lvalues-rvalues-and-temporaries
877
+ More details can be found in the [Expressions] section of the Reference.
878
+
879
+ [Expressions]: https://doc.rust-lang.org/reference/expressions.html#lvalues-rvalues-and-temporaries
879
880
880
881
Now, we can go further. Here are some erroneous code examples:
881
882
@@ -3467,10 +3468,10 @@ struct Foo<'a, T: 'a> {
3467
3468
}
3468
3469
```
3469
3470
3470
- PhantomData can also be used to express information about unused type
3471
- parameters. You can read more about it in the API documentation:
3471
+ [ PhantomData] can also be used to express information about unused type
3472
+ parameters.
3472
3473
3473
- https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3474
+ [PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3474
3475
"## ,
3475
3476
3476
3477
E0393 : r##"
@@ -4342,7 +4343,9 @@ let variable = Foo { x: 0, y: -12 };
4342
4343
println!("x: {}, y: {}", variable.x, variable.y);
4343
4344
```
4344
4345
4345
- For more information see The Rust Book: https://doc.rust-lang.org/book/
4346
+ For more information about primitives and structs, take a look at The Book:
4347
+ https://doc.rust-lang.org/book/first-edition/primitive-types.html
4348
+ https://doc.rust-lang.org/book/first-edition/structs.html
4346
4349
"## ,
4347
4350
4348
4351
E0611 : r##"
@@ -4560,9 +4563,10 @@ unsafe {
4560
4563
}
4561
4564
```
4562
4565
4563
- To fix this error, you need to pass variables corresponding to C types as much
4564
- as possible. For better explanations, see The Rust Book:
4565
- https://doc.rust-lang.org/book/
4566
+ Certain Rust types must be cast before passing them to a variadic function,
4567
+ because of arcane ABI rules dictated by the C standard. To fix the error,
4568
+ cast the value to the type specified by the error message (which you may need
4569
+ to import from `std::os::raw`).
4566
4570
"## ,
4567
4571
4568
4572
E0618 : r##"
0 commit comments