]> git.lizzy.rs Git - rust.git/commitdiff
Add reference link
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 25 Jun 2017 07:25:37 +0000 (09:25 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 25 Jun 2017 07:25:37 +0000 (09:25 +0200)
src/librustc_typeck/diagnostics.rs

index f9b44f0395fc423a548c14a0948d3576a8a66f7a..b2fa2cc7c61d2524f98696fa025c412d174091df 100644 (file)
@@ -4223,6 +4223,9 @@ trait was performed.
 let c = 86u8 as char; // ok!
 assert_eq!(c, 'V');
 ```
+
+For more information about casts, take a look at The Book:
+https://doc.rust-lang.org/book/first-edition/casting-between-types.html
 "##,
 
 E0605: r##"
@@ -4249,6 +4252,9 @@ trait was performed.
 let v = 0 as *const u8;
 v as *const i8; // ok!
 ```
+
+For more information about casts, take a look at The Book:
+https://doc.rust-lang.org/book/first-edition/casting-between-types.html
 "##,
 
 E0606: r##"
@@ -4268,6 +4274,9 @@ trait was performed.
 let x = &0u8;
 let y: u32 = *x as u32; // We dereference it first and then cast it.
 ```
+
+For more information about casts, take a look at The Book:
+https://doc.rust-lang.org/book/first-edition/casting-between-types.html
 "##,
 
 E0607: r##"
@@ -4292,6 +4301,9 @@ trait was performed.
 pointer holds is their size.
 
 To fix this error, don't try to cast directly between thin and fat pointers.
+
+For more information about casts, take a look at The Book:
+https://doc.rust-lang.org/book/first-edition/casting-between-types.html
 "##,
 
 E0609: r##"