about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/error_codes.rs7
-rw-r--r--src/test/ui/conflicting-repr-hints.stderr1
-rw-r--r--src/test/ui/feature-gates/feature-gate-repr-simd.stderr3
3 files changed, 5 insertions, 6 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs
index 9a5e1ea6f33..502172db91c 100644
--- a/src/librustc/error_codes.rs
+++ b/src/librustc/error_codes.rs
@@ -1705,12 +1705,9 @@ Conflicting representation hints have been used on a same item.
 
 Erroneous code example:
 
-```compile_fail,E0566
-# #![deny(warnings)]
-# fn main() {
-#[repr(u32, u64)] // error!
+```
+#[repr(u32, u64)] // warning!
 enum Repr { A }
-# }
 ```
 
 In most cases (if not all), using just one representation hint is more than
diff --git a/src/test/ui/conflicting-repr-hints.stderr b/src/test/ui/conflicting-repr-hints.stderr
index 6b15b7ebbe9..832f5c3ac2b 100644
--- a/src/test/ui/conflicting-repr-hints.stderr
+++ b/src/test/ui/conflicting-repr-hints.stderr
@@ -66,3 +66,4 @@ LL | | }
 
 error: aborting due to 8 previous errors
 
+For more information about this error, try `rustc --explain E0566`.
diff --git a/src/test/ui/feature-gates/feature-gate-repr-simd.stderr b/src/test/ui/feature-gates/feature-gate-repr-simd.stderr
index dfaa85bc5f0..02c8400e03e 100644
--- a/src/test/ui/feature-gates/feature-gate-repr-simd.stderr
+++ b/src/test/ui/feature-gates/feature-gate-repr-simd.stderr
@@ -26,4 +26,5 @@ LL | #[repr(simd)]
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0658`.
+Some errors have detailed explanations: E0566, E0658.
+For more information about an error, try `rustc --explain E0566`.