summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/safety-trait-impl-cc.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/traits/safety-trait-impl-cc.stderr')
-rw-r--r--src/test/ui/traits/safety-trait-impl-cc.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/traits/safety-trait-impl-cc.stderr b/src/test/ui/traits/safety-trait-impl-cc.stderr
index 5a0f8d3b8..0b1fb3047 100644
--- a/src/test/ui/traits/safety-trait-impl-cc.stderr
+++ b/src/test/ui/traits/safety-trait-impl-cc.stderr
@@ -7,6 +7,12 @@ LL | | panic!();
LL | | }
LL | | }
| |_^
+ |
+ = note: the trait `Foo` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
+help: add `unsafe` to this trait implementation
+ |
+LL | unsafe impl lib::Foo for Bar {
+ | ++++++
error: aborting due to previous error